public static class UnitProcessor.DefaultContext extends java.lang.Object implements UnitProcessor.Context
| Modifier and Type | Field and Description |
|---|---|
protected BridgeContext |
ctx
The bridge context.
|
protected org.w3c.dom.Element |
e
The element.
|
| Constructor and Description |
|---|
UnitProcessor.DefaultContext(BridgeContext ctx,
org.w3c.dom.Element e)
Creates a new DefaultContext.
|
| Modifier and Type | Method and 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.
|
protected org.w3c.dom.Element e
protected BridgeContext ctx
public UnitProcessor.DefaultContext(BridgeContext ctx, org.w3c.dom.Element e)
public org.w3c.dom.Element getElement()
getElement in interface UnitProcessor.Contextpublic float getPixelUnitToMillimeter()
getPixelUnitToMillimeter in interface UnitProcessor.Contextpublic float getPixelToMM()
getPixelToMM in interface UnitProcessor.ContextgetPixelUnitToMillimeter()public float getFontSize()
getFontSize in interface UnitProcessor.Contextpublic float getXHeight()
getXHeight in interface UnitProcessor.Contextpublic float getViewportWidth()
getViewportWidth in interface UnitProcessor.Contextpublic float getViewportHeight()
getViewportHeight in interface UnitProcessor.ContextCopyright ? 2009 Apache Software Foundation. All Rights Reserved.