org.apache.batik.css.engine.value
Class AbstractColorManager

java.lang.Object
  extended by org.apache.batik.css.engine.value.AbstractValueFactory
      extended by org.apache.batik.css.engine.value.AbstractValueManager
          extended by org.apache.batik.css.engine.value.IdentifierManager
              extended by 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.


Field Summary
protected static StringMap computedValues
          The computed identifier values.
protected static StringMap values
          The identifier values.
 
Constructor Summary
AbstractColorManager()
           
 
Method Summary
 Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value)
          Implements ValueManager.computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value).
protected  Value createColorComponent(org.w3c.css.sac.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(org.w3c.css.sac.LexicalUnit lu, CSSEngine engine)
          Implements ValueManager.createValue(LexicalUnit,CSSEngine).
 StringMap getIdentifiers()
          Implements IdentifierManager.getIdentifiers().
 
Methods inherited from class org.apache.batik.css.engine.value.IdentifierManager
createStringValue
 
Methods inherited from class org.apache.batik.css.engine.value.AbstractValueManager
createFloatValue
 
Methods inherited from class org.apache.batik.css.engine.value.AbstractValueFactory
createDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, getPropertyName, resolveURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.batik.css.engine.value.ValueManager
getDefaultValue, getPropertyName, getPropertyType, isAdditiveProperty, isAnimatableProperty, isInheritedProperty
 

Field Detail

values

protected static final StringMap values
The identifier values.


computedValues

protected static final StringMap computedValues
The computed identifier values.

Constructor Detail

AbstractColorManager

public AbstractColorManager()
Method Detail

createValue

public Value createValue(org.w3c.css.sac.LexicalUnit lu,
                         CSSEngine engine)
                  throws DOMException
Implements ValueManager.createValue(LexicalUnit,CSSEngine).

Specified by:
createValue in interface ValueManager
Overrides:
createValue in class IdentifierManager
Parameters:
lu - The SAC lexical unit used to create the value.
engine - The calling CSSEngine.
Throws:
DOMException

computeValue

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

Specified by:
computeValue in interface ValueManager
Overrides:
computeValue in class AbstractValueManager
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(org.w3c.css.sac.LexicalUnit lu)
                              throws DOMException
Creates a color component from a lexical unit.

Throws:
DOMException

getIdentifiers

public StringMap getIdentifiers()
Implements IdentifierManager.getIdentifiers().

Specified by:
getIdentifiers in class IdentifierManager


Copyright © 2008 Apache Software Foundation. All Rights Reserved.