org.apache.batik.css.svg
Interface SVGCSSContext

All Superinterfaces:
CommonCSSContext
All Known Subinterfaces:
SVGContext
All Known Implementing Classes:
DefaultSVGCSSContext

public interface SVGCSSContext
extends CommonCSSContext

This interface represents the context the application must provides to the CSS engine in order to resolve the relative SVG CSS values.


Inner classes inherited from class org.apache.batik.css.value.CommonCSSContext
CommonCSSContext.Color
 
Method Summary
 float getViewportHeight(Element e)
          Returns the height of the viewport.
 float getViewportWidth(Element e)
          Returns the width of the viewport.
 
Methods inherited from interface org.apache.batik.css.value.CommonCSSContext
getBolderFontWeight, getDefaultColorValue, getDefaultFontFamilyValue, getLighterFontWeight, getUserStyleSheetURI
 

Method Detail

getViewportWidth

public float getViewportWidth(Element e)
                       throws java.lang.IllegalStateException
Returns the width of the viewport.
Throws:
java.lang.IllegalStateException - if the context was not able to compute the value.

getViewportHeight

public float getViewportHeight(Element e)
                        throws java.lang.IllegalStateException
Returns the height of the viewport.
Throws:
java.lang.IllegalStateException - if the context was not able to compute the value.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.