Class SVGTextElementBridge.AbstractTextChildSVGContext

java.lang.Object
org.apache.batik.bridge.AbstractSVGBridge
org.apache.batik.bridge.AnimatableSVGBridge
org.apache.batik.bridge.SVGTextElementBridge.AbstractTextChildSVGContext
All Implemented Interfaces:
SVGAnimationTargetContext, Bridge, XMLConstants, SVGContext, CSSConstants, SVGConstants
Direct Known Subclasses:
SVGTextElementBridge.AbstractTextChildBridgeUpdateHandler
Enclosing class:
SVGTextElementBridge

public abstract static class SVGTextElementBridge.AbstractTextChildSVGContext extends AnimatableSVGBridge
Implementation of SVGContext for the children of <text>
  • Field Details

  • Constructor Details

    • AbstractTextChildSVGContext

      public AbstractTextChildSVGContext(BridgeContext ctx, SVGTextElementBridge parent, Element e)
      Initialize the SVGContext implementation with the bridgeContext, the parent bridge, and the element supervised by this context
  • Method Details

    • getNamespaceURI

      public String getNamespaceURI()
      Returns the namespace URI of the element this Bridge is dedicated to.
      Specified by:
      getNamespaceURI in interface Bridge
      Overrides:
      getNamespaceURI in class AbstractSVGBridge
    • getLocalName

      public String getLocalName()
      Returns the local name of the element this Bridge is dedicated to.
    • getInstance

      public Bridge getInstance()
      Returns a new instance of this bridge.
      Specified by:
      getInstance in interface Bridge
      Overrides:
      getInstance in class AbstractSVGBridge
    • getTextBridge

      public SVGTextElementBridge getTextBridge()
    • getPixelUnitToMillimeter

      public float getPixelUnitToMillimeter()
      Returns the size of a px CSS unit in millimeters.
    • getPixelToMM

      public float getPixelToMM()
      Returns the size of a px CSS unit in millimeters. This will be removed after next release.
      See Also:
    • getBBox

      public 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).
    • getCTM

      public 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.
    • getGlobalTransform

      public AffineTransform getGlobalTransform()
      Returns the global transformation matrix from the current element to the root.
    • getScreenTransform

      public AffineTransform getScreenTransform()
      Returns the transformation matrix from the userspace of the root element to the screen.
    • setScreenTransform

      public void setScreenTransform(AffineTransform at)
      Sets the transformation matrix to be used from the userspace of the root element to the screen.
    • getViewportWidth

      public float getViewportWidth()
      Returns the width of the viewport which directly contains the given element.
    • getViewportHeight

      public float getViewportHeight()
      Returns the height of the viewport which directly contains the given element.
    • getFontSize

      public float getFontSize()
      Returns the font-size on the associated element.