public abstract class AbstractColorManager extends IdentifierManager
Modifier and Type | Field and Description |
---|---|
protected static StringMap |
computedValues
The computed identifier values.
|
protected static StringMap |
values
The identifier values.
|
Constructor and Description |
---|
AbstractColorManager() |
Modifier and Type | Method and Description |
---|---|
Value |
computeValue(CSSStylableElement elt,
java.lang.String pseudo,
CSSEngine engine,
int idx,
StyleMap sm,
Value 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() . |
createStringValue
createFloatValue
createDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, getPropertyName, resolveURI
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultValue, getPropertyName, getPropertyType, isAdditiveProperty, isAnimatableProperty, isInheritedProperty
protected static final StringMap values
protected static final StringMap computedValues
public Value createValue(org.w3c.css.sac.LexicalUnit lu, CSSEngine engine) throws DOMException
ValueManager.createValue(LexicalUnit,CSSEngine)
.createValue
in interface ValueManager
createValue
in class IdentifierManager
lu
- The SAC lexical unit used to create the value.engine
- The calling CSSEngine.DOMException
public Value computeValue(CSSStylableElement elt, java.lang.String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value)
computeValue
in interface ValueManager
computeValue
in class AbstractValueManager
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.protected Value createColorComponent(org.w3c.css.sac.LexicalUnit lu) throws DOMException
DOMException
public StringMap getIdentifiers()
IdentifierManager.getIdentifiers()
.getIdentifiers
in class IdentifierManager
Copyright © 2022 Apache Software Foundation. All Rights Reserved.