Class AnimatableGenericSVGBridge

    • Constructor Detail

      • AnimatableGenericSVGBridge

        public AnimatableGenericSVGBridge()
    • 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 SVGTitleElementBridge.
        Specified by:
        handleElement in interface GenericBridge
        Parameters:
        ctx - the bridge context to use
        e - the element being 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()
        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()
        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)
        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()
        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()
        Returns the global transformation matrix from the current element to the root.
        Specified by:
        getGlobalTransform in interface SVGContext
      • getViewportWidth

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

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

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