Class AbstractSVGLength.DefaultContext
java.lang.Object
org.apache.batik.anim.dom.AbstractSVGLength.DefaultContext
- All Implemented Interfaces:
UnitProcessor.Context
- Enclosing class:
AbstractSVGLength
To resolve the units.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the element.floatReturns the font-size value.floatReturns the size of a px CSS unit in millimeters.floatReturns the size of a px CSS unit in millimeters.floatReturns the viewport height used to compute units.floatReturns the viewport width used to compute units.floatReturns the x-height value.
-
Constructor Details
-
DefaultContext
protected DefaultContext()
-
-
Method Details
-
getElement
Returns the element.- Specified by:
getElementin interfaceUnitProcessor.Context
-
getPixelUnitToMillimeter
public float getPixelUnitToMillimeter()Returns the size of a px CSS unit in millimeters.- Specified by:
getPixelUnitToMillimeterin interfaceUnitProcessor.Context
-
getPixelToMM
public float getPixelToMM()Returns the size of a px CSS unit in millimeters. This will be removed after next release.- Specified by:
getPixelToMMin interfaceUnitProcessor.Context- See Also:
-
getFontSize
public float getFontSize()Returns the font-size value.- Specified by:
getFontSizein interfaceUnitProcessor.Context
-
getXHeight
public float getXHeight()Returns the x-height value.- Specified by:
getXHeightin interfaceUnitProcessor.Context
-
getViewportWidth
public float getViewportWidth()Returns the viewport width used to compute units.- Specified by:
getViewportWidthin interfaceUnitProcessor.Context
-
getViewportHeight
public float getViewportHeight()Returns the viewport height used to compute units.- Specified by:
getViewportHeightin interfaceUnitProcessor.Context
-