org.apache.batik.bridge
Class SVGTextElementBridge.AbstractTextChildSVGContext
java.lang.Object
|
+--org.apache.batik.bridge.SVGTextElementBridge.AbstractTextChildSVGContext
- All Implemented Interfaces:
- SVGContext
- Direct Known Subclasses:
- SVGTextElementBridge.AbstractTextChildBridgeUpdateHandler
- Enclosing class:
- SVGTextElementBridge
- protected abstract class SVGTextElementBridge.AbstractTextChildSVGContext
- extends java.lang.Object
- implements SVGContext
Implementation of SVGContext for
the children of <text>
Method Summary |
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). |
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. |
float |
getFontSize()
Returns the font-size on the associated element. |
java.awt.geom.AffineTransform |
getGlobalTransform()
Returns the global transformation matrix from the current
element to the root. |
float |
getPixelToMM()
Returns the size of a px CSS unit in millimeters. |
float |
getPixelUnitToMillimeter()
Returns the size of a px CSS unit in millimeters. |
float |
getViewportHeight()
Returns the height of the viewport which directly contains the
given element. |
float |
getViewportWidth()
Returns the width of the viewport which directly contains the
given element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ctx
protected BridgeContext ctx
- Bridge Context
textBridge
protected SVGTextElementBridge textBridge
- Text bridge parent
e
protected Element e
- Element
SVGTextElementBridge.AbstractTextChildSVGContext
public SVGTextElementBridge.AbstractTextChildSVGContext(BridgeContext ctx,
SVGTextElementBridge parent,
Element e)
- Initialize the
SVGContext
implementation
with the bridgeContext, the parent bridge, and the
element supervised by this context
getPixelUnitToMillimeter
public float getPixelUnitToMillimeter()
- Returns the size of a px CSS unit in millimeters.
- Specified by:
getPixelUnitToMillimeter
in interface SVGContext
getPixelToMM
public float getPixelToMM()
- Returns the size of a px CSS unit in millimeters.
This will be removed after next release.
- Specified by:
getPixelToMM
in interface SVGContext
- See Also:
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
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
given element.
- Specified by:
getViewportWidth
in interface SVGContext
getViewportHeight
public float getViewportHeight()
- Returns the height of the viewport which directly contains the
given 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
Copyright © 2002 Apache Software Foundation. All Rights Reserved.