Package org.apache.batik.anim.dom
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.float
Returns the font-size value.float
Returns the size of a px CSS unit in millimeters.float
Returns the size of a px CSS unit in millimeters.float
Returns the viewport height used to compute units.float
Returns the viewport width used to compute units.float
Returns the x-height value.
-
Constructor Details
-
DefaultContext
protected DefaultContext()
-
-
Method Details
-
getElement
Returns the element.- Specified by:
getElement
in interfaceUnitProcessor.Context
-
getPixelUnitToMillimeter
public float getPixelUnitToMillimeter()Returns the size of a px CSS unit in millimeters.- Specified by:
getPixelUnitToMillimeter
in 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:
getPixelToMM
in interfaceUnitProcessor.Context
- See Also:
-
getFontSize
public float getFontSize()Returns the font-size value.- Specified by:
getFontSize
in interfaceUnitProcessor.Context
-
getXHeight
public float getXHeight()Returns the x-height value.- Specified by:
getXHeight
in interfaceUnitProcessor.Context
-
getViewportWidth
public float getViewportWidth()Returns the viewport width used to compute units.- Specified by:
getViewportWidth
in interfaceUnitProcessor.Context
-
getViewportHeight
public float getViewportHeight()Returns the viewport height used to compute units.- Specified by:
getViewportHeight
in interfaceUnitProcessor.Context
-