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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the element.floatReturns the font-size value.floatReturns the line-height value.floatReturns the resolution indpi.floatReturns the font-size value of the :root element.floatReturns the line-height value of the :root element.floatReturns the x-height value of the :root element.floatReturns the viewport height used to compute units.floatReturns the viewport width used to compute units.floatReturns the x-height value.
-
Constructor Details
-
UnitContext
protected UnitContext()
-
-
Method Details
-
getElement
Returns the element.- Specified by:
getElementin interfaceUnitProcessor.Context
-
getResolution
public float getResolution()Description copied from interface:UnitProcessor.ContextReturns the resolution indpi.- Specified by:
getResolutionin interfaceUnitProcessor.Context
-
getFontSize
public float getFontSize()Returns the font-size value.- Specified by:
getFontSizein interfaceUnitProcessor.Context
-
getLineHeight
public float getLineHeight()Description copied from interface:UnitProcessor.ContextReturns the line-height value.- Specified by:
getLineHeightin interfaceUnitProcessor.Context
-
getRootFontSize
public float getRootFontSize()Description copied from interface:UnitProcessor.ContextReturns the font-size value of the :root element.- Specified by:
getRootFontSizein interfaceUnitProcessor.Context
-
getRootLineHeight
public float getRootLineHeight()Description copied from interface:UnitProcessor.ContextReturns the line-height value of the :root element.- Specified by:
getRootLineHeightin interfaceUnitProcessor.Context
-
getXHeight
public float getXHeight()Returns the x-height value.- Specified by:
getXHeightin interfaceUnitProcessor.Context
-
getRootXHeight
public float getRootXHeight()Description copied from interface:UnitProcessor.ContextReturns the x-height value of the :root element.- Specified by:
getRootXHeightin 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
-