org.apache.batik.css.value
Class DefaultCommonCSSContext

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

public class DefaultCommonCSSContext
extends java.lang.Object
implements CommonCSSContext

This class is the default implementation of the CommonCSSContext.


Inner classes inherited from class org.apache.batik.css.value.CommonCSSContext
CommonCSSContext.Color
 
Field Summary
static CommonCSSContext.Color DEFAULT_COLOR
          The default color.
static java.util.List DEFAULT_FONT_FAMILY
          The default font family.
protected  java.lang.String userStyleSheetURI
          The user style sheet.
 
Constructor Summary
DefaultCommonCSSContext()
           
 
Method Summary
 float getBolderFontWeight(float f)
          Returns the font weight 'bolder' than the given weight.
 CommonCSSContext.Color getDefaultColorValue()
          The default color.
 java.util.List getDefaultFontFamilyValue()
          The font-family value.
 float getLighterFontWeight(float f)
          Returns the font weight 'lighter' than the given weight.
 java.lang.String getUserStyleSheetURI()
          The user style sheet URI.
 void setUserStyleSheetURI(java.lang.String s)
          Sets the user style sheet URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_COLOR

public static final CommonCSSContext.Color DEFAULT_COLOR
The default color.

DEFAULT_FONT_FAMILY

public static final java.util.List DEFAULT_FONT_FAMILY
The default font family.

userStyleSheetURI

protected java.lang.String userStyleSheetURI
The user style sheet.
Constructor Detail

DefaultCommonCSSContext

public DefaultCommonCSSContext()
Method Detail

getDefaultColorValue

public CommonCSSContext.Color getDefaultColorValue()
The default color.
Specified by:
getDefaultColorValue in interface CommonCSSContext

getDefaultFontFamilyValue

public java.util.List getDefaultFontFamilyValue()
The font-family value.
Specified by:
getDefaultFontFamilyValue in interface CommonCSSContext
Following copied from interface: org.apache.batik.css.value.CommonCSSContext
Returns:
a list of string.

getUserStyleSheetURI

public java.lang.String getUserStyleSheetURI()
The user style sheet URI.
Specified by:
getUserStyleSheetURI in interface CommonCSSContext

setUserStyleSheetURI

public void setUserStyleSheetURI(java.lang.String s)
Sets the user style sheet URI.

getLighterFontWeight

public float getLighterFontWeight(float f)
Returns the font weight 'lighter' than the given weight.
Specified by:
getLighterFontWeight in interface CommonCSSContext

getBolderFontWeight

public float getBolderFontWeight(float f)
Returns the font weight 'bolder' than the given weight.
Specified by:
getBolderFontWeight in interface CommonCSSContext


Copyright © 2001 Apache Software Foundation. All Rights Reserved.