org.apache.batik.bridge
Interface UnitProcessor.Context

All Known Implementing Classes:
UnitProcessor.DefaultContext
Enclosing class:
UnitProcessor

public static interface UnitProcessor.Context

Holds the informations needed to compute the units.


Method Summary
 Element getElement()
          Returns the element.
 CSSPrimitiveValue getFontSize()
          Returns the font-size value.
 float getMediumFontSize()
          Returns the font-size medium value in pt.
 UnitProcessor.Context getParentElementContext()
          Returns the context of the parent element of this context.
 float getPixelToMM()
          Returns the pixel to mm factor.
 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.
 

Method Detail

getElement

public Element getElement()
Returns the element.

getPixelToMM

public float getPixelToMM()
Returns the pixel to mm factor.

getMediumFontSize

public float getMediumFontSize()
Returns the font-size medium value in pt.

getFontSize

public CSSPrimitiveValue getFontSize()
Returns the font-size value.

getXHeight

public float getXHeight()
Returns the x-height value.

getViewportWidth

public float getViewportWidth()
Returns the viewport width used to compute units.

getViewportHeight

public float getViewportHeight()
Returns the viewport height used to compute units.

getParentElementContext

public UnitProcessor.Context getParentElementContext()
Returns the context of the parent element of this context.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.