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 ValueManager.
ValuecreateValue(LexicalUnit lu, CSSEngine engine)
Implements createValue.
protected floatgetColorValue(LexicalUnit lu)
Creates a float value usable as a component of an RGBColor.
ValuegetDefaultValue()
Implements getDefaultValue.
StringgetPropertyName()
Implements getPropertyName.
intgetPropertyType()
Implements getPropertyType.
booleanisAdditiveProperty()
Implements isAdditiveProperty.
booleanisAnimatableProperty()
booleanisInheritedProperty()
Implements 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 ValueManager.

createValue

public Value createValue(LexicalUnit lu, CSSEngine engine)
Implements createValue.

getColorValue

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

getDefaultValue

public Value getDefaultValue()
Implements getDefaultValue.

getPropertyName

public String getPropertyName()
Implements getPropertyName.

getPropertyType

public int getPropertyType()
Implements getPropertyType.

isAdditiveProperty

public boolean isAdditiveProperty()
Implements isAdditiveProperty.

isAnimatableProperty

public boolean isAnimatableProperty()
Implements isAnimatableProperty.

isInheritedProperty

public boolean isInheritedProperty()
Implements isInheritedProperty.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.