org.apache.batik.css.engine.value.svg
Class SVGPaintManager

java.lang.Object
  extended by org.apache.batik.css.engine.value.AbstractValueFactory
      extended by org.apache.batik.css.engine.value.AbstractValueManager
          extended by org.apache.batik.css.engine.value.IdentifierManager
              extended by org.apache.batik.css.engine.value.AbstractColorManager
                  extended by org.apache.batik.css.engine.value.svg.ColorManager
                      extended by org.apache.batik.css.engine.value.svg.SVGColorManager
                          extended by org.apache.batik.css.engine.value.svg.SVGPaintManager
All Implemented Interfaces:
ValueManager

public class SVGPaintManager
extends SVGColorManager

This class provides a manager for the SVGPaint property values.


Field Summary
 
Fields inherited from class org.apache.batik.css.engine.value.svg.SVGColorManager
defaultValue, property
 
Fields inherited from class org.apache.batik.css.engine.value.svg.ColorManager
DEFAULT_VALUE
 
Fields inherited from class org.apache.batik.css.engine.value.AbstractColorManager
computedValues, values
 
Constructor Summary
SVGPaintManager(String prop)
          Creates a new SVGPaintManager.
SVGPaintManager(String prop, Value v)
          Creates a new SVGPaintManager.
 
Method Summary
 Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value)
          Implements ValueManager.computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value).
 Value createValue(org.w3c.css.sac.LexicalUnit lu, CSSEngine engine)
          Implements ValueManager.createValue(LexicalUnit,CSSEngine).
 int getPropertyType()
          Implements ValueManager.getPropertyType().
 boolean isAdditiveProperty()
          Implements ValueManager.isAdditiveProperty().
 boolean isAnimatableProperty()
          Implements ValueManager.isAnimatableProperty().
 boolean isInheritedProperty()
          Implements ValueManager.isInheritedProperty().
 
Methods inherited from class org.apache.batik.css.engine.value.svg.SVGColorManager
getColorValue, getDefaultValue, getPropertyName
 
Methods inherited from class org.apache.batik.css.engine.value.AbstractColorManager
createColorComponent, createRGBColor, getIdentifiers
 
Methods inherited from class org.apache.batik.css.engine.value.IdentifierManager
createStringValue
 
Methods inherited from class org.apache.batik.css.engine.value.AbstractValueManager
createFloatValue
 
Methods inherited from class org.apache.batik.css.engine.value.AbstractValueFactory
createDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, resolveURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGPaintManager

public SVGPaintManager(String prop)
Creates a new SVGPaintManager.


SVGPaintManager

public SVGPaintManager(String prop,
                       Value v)
Creates a new SVGPaintManager.

Parameters:
prop - The property name.
v - The default value.
Method Detail

isInheritedProperty

public boolean isInheritedProperty()
Implements ValueManager.isInheritedProperty().

Specified by:
isInheritedProperty in interface ValueManager
Overrides:
isInheritedProperty in class SVGColorManager

isAnimatableProperty

public boolean isAnimatableProperty()
Implements ValueManager.isAnimatableProperty().

Specified by:
isAnimatableProperty in interface ValueManager
Overrides:
isAnimatableProperty in class SVGColorManager

isAdditiveProperty

public boolean isAdditiveProperty()
Implements ValueManager.isAdditiveProperty().

Specified by:
isAdditiveProperty in interface ValueManager
Overrides:
isAdditiveProperty in class SVGColorManager

getPropertyType

public int getPropertyType()
Implements ValueManager.getPropertyType().

Specified by:
getPropertyType in interface ValueManager
Overrides:
getPropertyType in class SVGColorManager

createValue

public Value createValue(org.w3c.css.sac.LexicalUnit lu,
                         CSSEngine engine)
                  throws DOMException
Implements ValueManager.createValue(LexicalUnit,CSSEngine).

Specified by:
createValue in interface ValueManager
Overrides:
createValue in class SVGColorManager
Parameters:
lu - The SAC lexical unit used to create the value.
engine - The calling CSSEngine.
Throws:
DOMException

computeValue

public Value computeValue(CSSStylableElement elt,
                          String pseudo,
                          CSSEngine engine,
                          int idx,
                          StyleMap sm,
                          Value value)
Implements ValueManager.computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value).

Specified by:
computeValue in interface ValueManager
Overrides:
computeValue in class SVGColorManager
Parameters:
elt - The owner of the value.
pseudo - The pseudo element.
engine - The CSSEngine.
idx - The property index in the engine.
sm - The computed style map.
value - The value to compute.


Copyright © 2008 Apache Software Foundation. All Rights Reserved.