protected class SVGOMElement.UnitContext extends java.lang.Object implements UnitProcessor.Context
Modifier | Constructor and Description |
---|---|
protected |
UnitContext() |
Modifier and Type | Method and Description |
---|---|
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.
|
public Element getElement()
getElement
in interface UnitProcessor.Context
public float getPixelUnitToMillimeter()
getPixelUnitToMillimeter
in interface UnitProcessor.Context
public float getPixelToMM()
getPixelToMM
in interface UnitProcessor.Context
getPixelUnitToMillimeter()
public float getFontSize()
getFontSize
in interface UnitProcessor.Context
public float getXHeight()
getXHeight
in interface UnitProcessor.Context
public float getViewportWidth()
getViewportWidth
in interface UnitProcessor.Context
public float getViewportHeight()
getViewportHeight
in interface UnitProcessor.Context
Copyright © 2022 Apache Software Foundation. All Rights Reserved.