java.lang.Object
io.sf.carte.echosvg.anim.dom.SVGOMElement.UnitContext
- All Implemented Interfaces:
UnitProcessor.Context
- Enclosing class:
SVGOMElement
To resolve the units.
-
Constructor Summary
-
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 viewport height used to compute units.float
Returns the viewport width used to compute units.float
Returns the x-height value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.sf.carte.echosvg.parser.UnitProcessor.Context
getPixelToMM
-
Constructor Details
-
UnitContext
protected UnitContext()
-
-
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
-
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
-