Class SVGDescriptiveElementBridge

    • Field Detail

      • theElt

        org.w3c.dom.Element theElt
      • parent

        org.w3c.dom.Element parent
    • Constructor Detail

      • SVGDescriptiveElementBridge

        public SVGDescriptiveElementBridge()
    • Method Detail

      • handleElement

        public void handleElement​(BridgeContext ctx,
                                  org.w3c.dom.Element e)
        Invoked to handle an Element for a given BridgeContext. For example, see the SVGDescElementBridge.
        Specified by:
        handleElement in interface GenericBridge
        Parameters:
        ctx - the bridge context to use
        e - the element to be handled
      • getPixelUnitToMillimeter

        public float getPixelUnitToMillimeter()
        Returns the size of a px CSS unit in millimeters.
        Specified by:
        getPixelUnitToMillimeter in interface SVGContext
      • getBBox

        public java.awt.geom.Rectangle2D getBBox()
        Description copied from interface: SVGContext
        Returns the tight bounding box in current user space (i.e., after application of the transform attribute, if any) on the geometry of all contained graphics elements, exclusive of stroke-width and filter effects).
        Specified by:
        getBBox in interface SVGContext
      • getScreenTransform

        public java.awt.geom.AffineTransform getScreenTransform()
        Description copied from interface: SVGContext
        Returns the transform from the global transform space to pixels.
        Specified by:
        getScreenTransform in interface SVGContext
      • setScreenTransform

        public void setScreenTransform​(java.awt.geom.AffineTransform at)
        Description copied from interface: SVGContext
        Sets the transform to be used from the global transform space to pixels.
        Specified by:
        setScreenTransform in interface SVGContext
      • getCTM

        public java.awt.geom.AffineTransform getCTM()
        Description copied from interface: SVGContext
        Returns the transformation matrix from current user units (i.e., after application of the transform attribute, if any) to the viewport coordinate system for the nearestViewportElement.
        Specified by:
        getCTM in interface SVGContext
      • getGlobalTransform

        public java.awt.geom.AffineTransform getGlobalTransform()
        Description copied from interface: SVGContext
        Returns the global transformation matrix from the current element to the root.
        Specified by:
        getGlobalTransform in interface SVGContext
      • getViewportWidth

        public float getViewportWidth()
        Description copied from interface: SVGContext
        Returns the width of the viewport which directly contains the associated element.
        Specified by:
        getViewportWidth in interface SVGContext
      • getViewportHeight

        public float getViewportHeight()
        Description copied from interface: SVGContext
        Returns the height of the viewport which directly contains the associated element.
        Specified by:
        getViewportHeight in interface SVGContext
      • getFontSize

        public float getFontSize()
        Description copied from interface: SVGContext
        Returns the font-size on the associated element.
        Specified by:
        getFontSize in interface SVGContext