org.apache.batik.css.engine.value

Class AbstractColorManager

public abstract class AbstractColorManager extends IdentifierManager

This class provides a manager for the property with support for CSS color values.
Field Summary
protected static StringMapcomputedValues
The computed identifier values.
protected static StringMapvalues
The identifier values.
Method Summary
ValuecomputeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value)
Implements ValueManager.
protected ValuecreateColorComponent(LexicalUnit lu)
Creates a color component from a lexical unit.
protected ValuecreateRGBColor(Value r, Value g, Value b)
Creates an RGB color.
ValuecreateValue(LexicalUnit lu, CSSEngine engine)
Implements createValue.
StringMapgetIdentifiers()
Implements getIdentifiers.

Field Detail

computedValues

protected static final StringMap computedValues
The computed identifier values.

values

protected static final StringMap values
The identifier values.

Method Detail

computeValue

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

createColorComponent

protected Value createColorComponent(LexicalUnit lu)
Creates a color component from a lexical unit.

createRGBColor

protected Value createRGBColor(Value r, Value g, Value b)
Creates an RGB color.

createValue

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

getIdentifiers

public StringMap getIdentifiers()
Implements getIdentifiers.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.