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

Class SVGColorManager

public class SVGColorManager extends ColorManager

This class provides a manager for the SVGColor property values.
Field Summary
protected ValuedefaultValue
The default value.
protected Stringproperty
The name of the handled property.
Constructor Summary
SVGColorManager(String prop)
Creates a new SVGColorManager.
SVGColorManager(String prop, Value v)
Creates a new SVGColorManager.
Method Summary
ValuecomputeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value)
Implements {@link ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}.
ValuecreateValue(LexicalUnit lu, CSSEngine engine)
Implements {@link ValueManager#createValue(LexicalUnit,CSSEngine)}.
protected floatgetColorValue(LexicalUnit lu)
Creates a float value usable as a component of an RGBColor.
ValuegetDefaultValue()
Implements {@link org.apache.batik.css.engine.value.ValueManager#getDefaultValue()}.
StringgetPropertyName()
Implements {@link ValueManager#getPropertyName()}.
intgetPropertyType()
Implements {@link ValueManager#getPropertyType()}.
booleanisAdditiveProperty()
Implements {@link ValueManager#isAdditiveProperty()}.
booleanisAnimatableProperty()
Implements {@link ValueManager#isAnimatableProperty()}.
booleanisInheritedProperty()
Implements {@link ValueManager#isInheritedProperty()}.

Field Detail

defaultValue

protected Value defaultValue
The default value.

property

protected String property
The name of the handled property.

Constructor Detail

SVGColorManager

public SVGColorManager(String prop)
Creates a new SVGColorManager. The default value is black.

SVGColorManager

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

Method Detail

computeValue

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

createValue

public Value createValue(LexicalUnit lu, CSSEngine engine)
Implements {@link ValueManager#createValue(LexicalUnit,CSSEngine)}.

getColorValue

protected float getColorValue(LexicalUnit lu)
Creates a float value usable as a component of an RGBColor.

getDefaultValue

public Value getDefaultValue()
Implements {@link org.apache.batik.css.engine.value.ValueManager#getDefaultValue()}.

getPropertyName

public String getPropertyName()
Implements {@link ValueManager#getPropertyName()}.

getPropertyType

public int getPropertyType()
Implements {@link ValueManager#getPropertyType()}.

isAdditiveProperty

public boolean isAdditiveProperty()
Implements {@link ValueManager#isAdditiveProperty()}.

isAnimatableProperty

public boolean isAnimatableProperty()
Implements {@link ValueManager#isAnimatableProperty()}.

isInheritedProperty

public boolean isInheritedProperty()
Implements {@link ValueManager#isInheritedProperty()}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.