org.apache.batik.bridge

Class SVGTextElementBridge.AbstractTextChildSVGContext

public abstract class SVGTextElementBridge.AbstractTextChildSVGContext extends AnimatableSVGBridge

Implementation of SVGContext for the children of <text>
Field Summary
protected SVGTextElementBridgetextBridge
Text bridge parent
Constructor Summary
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 Summary
Rectangle2DgetBBox()
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).
AffineTransformgetCTM()
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.
floatgetFontSize()
Returns the font-size on the associated element.
AffineTransformgetGlobalTransform()
Returns the global transformation matrix from the current element to the root.
BridgegetInstance()
Returns a new instance of this bridge.
StringgetLocalName()
Returns the local name of the element this Bridge is dedicated to.
StringgetNamespaceURI()
Returns the namespace URI of the element this Bridge is dedicated to.
floatgetPixelToMM()
Returns the size of a px CSS unit in millimeters.
floatgetPixelUnitToMillimeter()
Returns the size of a px CSS unit in millimeters.
AffineTransformgetScreenTransform()
Returns the transformation matrix from the userspace of the root element to the screen.
SVGTextElementBridgegetTextBridge()
floatgetViewportHeight()
Returns the height of the viewport which directly contains the given element.
floatgetViewportWidth()
Returns the width of the viewport which directly contains the given element.
voidsetScreenTransform(AffineTransform at)
Sets the transformation matrix to be used from the userspace of the root element to the screen.

Field Detail

textBridge

protected SVGTextElementBridge textBridge
Text bridge parent

Constructor Detail

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 Detail

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.

getFontSize

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

getGlobalTransform

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

getInstance

public Bridge getInstance()
Returns a new instance of this bridge.

getLocalName

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

getNamespaceURI

public String getNamespaceURI()
Returns the namespace URI of the element this Bridge is dedicated to.

getPixelToMM

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

See Also: getPixelUnitToMillimeter

getPixelUnitToMillimeter

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

getScreenTransform

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

getTextBridge

public SVGTextElementBridge getTextBridge()

getViewportHeight

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

getViewportWidth

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

setScreenTransform

public void setScreenTransform(AffineTransform at)
Sets the transformation matrix to be used from the userspace of the root element to the screen.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.