org.apache.batik.css.engine.value
Class AbstractColorManager
java.lang.Object
|
+--org.apache.batik.css.engine.value.AbstractValueFactory
|
+--org.apache.batik.css.engine.value.AbstractValueManager
|
+--org.apache.batik.css.engine.value.IdentifierManager
|
+--org.apache.batik.css.engine.value.AbstractColorManager
- All Implemented Interfaces:
- ValueManager
- Direct Known Subclasses:
- ColorManager
- public abstract class AbstractColorManager
- extends IdentifierManager
This class provides a manager for the property with support for
CSS color values.
Method Summary |
Value |
computeValue(CSSStylableElement elt,
java.lang.String pseudo,
CSSEngine engine,
int idx,
StyleMap sm,
Value value)
Implements ValueManager.computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value) . |
protected Value |
createColorComponent(LexicalUnit lu)
Creates a color component from a lexical unit. |
protected Value |
createRGBColor(Value r,
Value g,
Value b)
Creates an RGB color. |
Value |
createValue(LexicalUnit lu,
CSSEngine engine)
Implements ValueManager.createValue(LexicalUnit,CSSEngine) . |
protected StringMap |
getIdentifiers()
Implements IdentifierManager.getIdentifiers() . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
values
protected static final StringMap values
- The identifier values.
computedValues
protected static final StringMap computedValues
- The computed identifier values.
AbstractColorManager
public AbstractColorManager()
createValue
public Value createValue(LexicalUnit lu,
CSSEngine engine)
throws org.w3c.dom.DOMException
- Implements
ValueManager.createValue(LexicalUnit,CSSEngine)
.
- Overrides:
createValue
in class IdentifierManager
- Following copied from interface:
org.apache.batik.css.engine.value.ValueManager
- Parameters:
lu
- The SAC lexical unit used to create the value.engine
- The calling CSSEngine.
computeValue
public Value computeValue(CSSStylableElement elt,
java.lang.String pseudo,
CSSEngine engine,
int idx,
StyleMap sm,
Value value)
- Implements
ValueManager.computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)
.
- Overrides:
computeValue
in class AbstractValueManager
- Following copied from interface:
org.apache.batik.css.engine.value.ValueManager
- 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.
createRGBColor
protected Value createRGBColor(Value r,
Value g,
Value b)
- Creates an RGB color.
createColorComponent
protected Value createColorComponent(LexicalUnit lu)
throws org.w3c.dom.DOMException
- Creates a color component from a lexical unit.
getIdentifiers
protected StringMap getIdentifiers()
- Implements
IdentifierManager.getIdentifiers()
.
- Overrides:
getIdentifiers
in class IdentifierManager
Copyright © 2004 Apache Software Foundation. All Rights Reserved.