|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.bridge.UnitProcessor.DefaultContext
public static class UnitProcessor.DefaultContext
This class is the default context for a particular element. Information not available on the element are obtained from the bridge context (such as the viewport or the pixel to millimeter factor).
Field Summary | |
---|---|
protected BridgeContext |
ctx
The bridge context. |
protected Element |
e
The element. |
Constructor Summary | |
---|---|
UnitProcessor.DefaultContext(BridgeContext ctx,
Element e)
Creates a new DefaultContext. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Element e
protected BridgeContext ctx
Constructor Detail |
---|
public UnitProcessor.DefaultContext(BridgeContext ctx, Element e)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |