org.apache.batik.css.engine.value

Interface ValueManager

public interface ValueManager

This interface is implemented by objects which manage the values associated with a property.
Method Summary
ValuecomputeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value)
Computes the given value.
ValuecreateFloatValue(short unitType, float floatValue)
Creates and returns a new float value.
ValuecreateStringValue(short type, String value, CSSEngine engine)
Creates and returns a new string value.
ValuecreateValue(LexicalUnit lu, CSSEngine engine)
Creates a value from a lexical unit.
ValuegetDefaultValue()
Returns the default value for the handled property.
StringgetPropertyName()
Returns the name of the property handled.
intgetPropertyType()
Returns the type of value this manager handles.
booleanisAdditiveProperty()
Whether the handled property can be additively animated.
booleanisAnimatableProperty()
Whether the handled property can be animated.
booleanisInheritedProperty()
Whether the handled property is inherited or not.

Method Detail

computeValue

public Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value)
Computes the given value.

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.

createFloatValue

public Value createFloatValue(short unitType, float floatValue)
Creates and returns a new float value.

Parameters: unitType A unit code as defined above. The unit code can only be a float unit type floatValue The new float value.

createStringValue

public Value createStringValue(short type, String value, CSSEngine engine)
Creates and returns a new string value.

Parameters: type A string code as defined in CSSPrimitiveValue. The string code can only be a string unit type. value The new string value. engine The CSS engine.

createValue

public Value createValue(LexicalUnit lu, CSSEngine engine)
Creates a value from a lexical unit.

Parameters: lu The SAC lexical unit used to create the value. engine The calling CSSEngine.

getDefaultValue

public Value getDefaultValue()
Returns the default value for the handled property.

getPropertyName

public String getPropertyName()
Returns the name of the property handled.

getPropertyType

public int getPropertyType()
Returns the type of value this manager handles. This should be one of the TYPE_* constants defined in {@link org.apache.batik.util.SVGTypes}.

isAdditiveProperty

public boolean isAdditiveProperty()
Whether the handled property can be additively animated.

isAnimatableProperty

public boolean isAnimatableProperty()
Whether the handled property can be animated.

isInheritedProperty

public boolean isInheritedProperty()
Whether the handled property is inherited or not.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.