org.apache.batik.dom.svg
Interface UnitProcessor.Context

All Known Implementing Classes:
DefaultUnitProcessorContext
Enclosing class:
UnitProcessor

public static interface UnitProcessor.Context

Holds the informations needed to compute the units.


Method Summary
 CSSPrimitiveValue getFontSize(SVGElement e)
          Returns the font-size value.
 float getMediumFontSize()
          Returns the font-size medium value in pt.
 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(SVGElement e)
          Returns the x-height value.
 

Method Detail

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(SVGElement e)
Returns the font-size value.

getXHeight

public float getXHeight(SVGElement e)
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.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.