org.apache.batik.dom.svg

Interface SVGContext

public interface SVGContext

This interface is the placeholder for SVG application informations.
Field Summary
intPERCENTAGE_FONT_SIZE
intPERCENTAGE_VIEWPORT_HEIGHT
intPERCENTAGE_VIEWPORT_SIZE
intPERCENTAGE_VIEWPORT_WIDTH
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.
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 transform from the global transform space to pixels.
floatgetViewportHeight()
Returns the height of the viewport which directly contains the associated element.
floatgetViewportWidth()
Returns the width of the viewport which directly contains the associated element.
voidsetScreenTransform(AffineTransform at)
Sets the transform to be used from the global transform space to pixels.

Field Detail

PERCENTAGE_FONT_SIZE

public int PERCENTAGE_FONT_SIZE

PERCENTAGE_VIEWPORT_HEIGHT

public int PERCENTAGE_VIEWPORT_HEIGHT

PERCENTAGE_VIEWPORT_SIZE

public int PERCENTAGE_VIEWPORT_SIZE

PERCENTAGE_VIEWPORT_WIDTH

public int PERCENTAGE_VIEWPORT_WIDTH

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.

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 transform from the global transform space to pixels.

getViewportHeight

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

getViewportWidth

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

setScreenTransform

public void setScreenTransform(AffineTransform at)
Sets the transform to be used from the global transform space to pixels.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.