org.apache.batik.css.svg
Class DefaultSVGCSSContext

java.lang.Object
  |
  +--org.apache.batik.css.value.DefaultCommonCSSContext
        |
        +--org.apache.batik.css.svg.DefaultSVGCSSContext
All Implemented Interfaces:
CommonCSSContext, SVGCSSContext
Direct Known Subclasses:
DefaultSVGContext

public class DefaultSVGCSSContext
extends DefaultCommonCSSContext
implements SVGCSSContext

This class is the default implementation of the SVGCSSContext.


Inner classes inherited from class org.apache.batik.css.value.CommonCSSContext
CommonCSSContext.Color
 
Fields inherited from class org.apache.batik.css.value.DefaultCommonCSSContext
DEFAULT_COLOR, DEFAULT_FONT_FAMILY, userStyleSheetURI
 
Constructor Summary
DefaultSVGCSSContext()
           
 
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 class org.apache.batik.css.value.DefaultCommonCSSContext
getBolderFontWeight, getDefaultColorValue, getDefaultFontFamilyValue, getLighterFontWeight, getUserStyleSheetURI, setUserStyleSheetURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.batik.css.value.CommonCSSContext
getBolderFontWeight, getDefaultColorValue, getDefaultFontFamilyValue, getLighterFontWeight, getUserStyleSheetURI
 

Constructor Detail

DefaultSVGCSSContext

public DefaultSVGCSSContext()
Method Detail

getViewportWidth

public float getViewportWidth(Element e)
                       throws java.lang.IllegalStateException
Returns the width of the viewport.
Specified by:
getViewportWidth in interface SVGCSSContext
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.
Specified by:
getViewportHeight in interface SVGCSSContext
Throws:
java.lang.IllegalStateException - if the context was not able to compute the value.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.