org.apache.batik.dom.svg

Class SVGOMElement.UnitContext

protected class SVGOMElement.UnitContext extends Object implements UnitProcessor.Context

To resolve the units.
Method Summary
ElementgetElement()
Returns the element.
floatgetFontSize()
Returns the font-size value.
floatgetPixelToMM()
Returns the size of a px CSS unit in millimeters.
floatgetPixelUnitToMillimeter()
Returns the size of a px CSS unit in millimeters.
floatgetViewportHeight()
Returns the viewport height used to compute units.
floatgetViewportWidth()
Returns the viewport width used to compute units.
floatgetXHeight()
Returns the x-height value.

Method Detail

getElement

public Element getElement()
Returns the element.

getFontSize

public float getFontSize()
Returns the font-size value.

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.

getViewportHeight

public float getViewportHeight()
Returns the viewport height used to compute units.

getViewportWidth

public float getViewportWidth()
Returns the viewport width used to compute units.

getXHeight

public float getXHeight()
Returns the x-height value.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.