java.lang.Object
io.sf.carte.echosvg.anim.dom.SVGOMElement.UnitContext
- All Implemented Interfaces:
- UnitProcessor.Context
- Enclosing class:
- SVGOMElement
To resolve the units.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
UnitContextprotected UnitContext()
 
- 
- 
Method Details- 
getElementReturns the element.- Specified by:
- getElementin interface- UnitProcessor.Context
 
- 
getResolutionpublic float getResolution()Description copied from interface:UnitProcessor.ContextReturns the resolution indpi.- Specified by:
- getResolutionin interface- UnitProcessor.Context
 
- 
getFontSizepublic float getFontSize()Returns the font-size value.- Specified by:
- getFontSizein interface- UnitProcessor.Context
 
- 
getLineHeightpublic float getLineHeight()Description copied from interface:UnitProcessor.ContextReturns the line-height value.- Specified by:
- getLineHeightin interface- UnitProcessor.Context
 
- 
getRootFontSizepublic float getRootFontSize()Description copied from interface:UnitProcessor.ContextReturns the font-size value of the :root element.- Specified by:
- getRootFontSizein interface- UnitProcessor.Context
 
- 
getRootLineHeightpublic float getRootLineHeight()Description copied from interface:UnitProcessor.ContextReturns the line-height value of the :root element.- Specified by:
- getRootLineHeightin interface- UnitProcessor.Context
 
- 
getXHeightpublic float getXHeight()Returns the x-height value.- Specified by:
- getXHeightin interface- UnitProcessor.Context
 
- 
getRootXHeightpublic float getRootXHeight()Description copied from interface:UnitProcessor.ContextReturns the x-height value of the :root element.- Specified by:
- getRootXHeightin interface- UnitProcessor.Context
 
- 
getViewportWidthpublic float getViewportWidth()Returns the viewport width used to compute units.- Specified by:
- getViewportWidthin interface- UnitProcessor.Context
 
- 
getViewportHeightpublic float getViewportHeight()Returns the viewport height used to compute units.- Specified by:
- getViewportHeightin interface- UnitProcessor.Context
 
 
-