Package org.apache.batik.anim.dom
Class SVGOMElement.UnitContext
- java.lang.Object
-
- org.apache.batik.anim.dom.SVGOMElement.UnitContext
-
- All Implemented Interfaces:
UnitProcessor.Context
- Enclosing class:
- SVGOMElement
protected class SVGOMElement.UnitContext extends java.lang.Object implements UnitProcessor.Context
To resolve the units.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnitContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Element
getElement()
Returns the element.float
getFontSize()
Returns the font-size value.float
getPixelToMM()
Returns the size of a px CSS unit in millimeters.float
getPixelUnitToMillimeter()
Returns the size of a px CSS unit in millimeters.float
getViewportHeight()
Returns the viewport height used to compute units.float
getViewportWidth()
Returns the viewport width used to compute units.float
getXHeight()
Returns the x-height value.
-
-
-
Method Detail
-
getElement
public org.w3c.dom.Element 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:
getPixelUnitToMillimeter()
-
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
-
-