public class SVGColorManager extends ColorManager
Modifier and Type | Field and Description |
---|---|
protected Value |
defaultValue
The default value.
|
protected java.lang.String |
property
The name of the handled property.
|
DEFAULT_VALUE
computedValues, values
Constructor and Description |
---|
SVGColorManager(java.lang.String prop)
Creates a new SVGColorManager.
|
SVGColorManager(java.lang.String prop,
Value v)
Creates a new SVGColorManager.
|
Modifier and Type | Method and Description |
---|---|
Value |
computeValue(CSSStylableElement elt,
java.lang.String pseudo,
CSSEngine engine,
int idx,
StyleMap sm,
Value value)
|
Value |
createValue(org.w3c.css.sac.LexicalUnit lu,
CSSEngine engine)
Implements
ValueManager.createValue(LexicalUnit,CSSEngine) . |
protected float |
getColorValue(org.w3c.css.sac.LexicalUnit lu)
Creates a float value usable as a component of an RGBColor.
|
Value |
getDefaultValue()
Implements
ValueManager.getDefaultValue() . |
java.lang.String |
getPropertyName()
Implements
ValueManager.getPropertyName() . |
int |
getPropertyType()
Implements
ValueManager.getPropertyType() . |
boolean |
isAdditiveProperty()
Implements
ValueManager.isAdditiveProperty() . |
boolean |
isAnimatableProperty()
Implements
ValueManager.isAnimatableProperty() . |
boolean |
isInheritedProperty()
Implements
ValueManager.isInheritedProperty() . |
createColorComponent, createRGBColor, getIdentifiers
createStringValue
createFloatValue
createDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, resolveURI
protected java.lang.String property
protected Value defaultValue
public SVGColorManager(java.lang.String prop)
public SVGColorManager(java.lang.String prop, Value v)
public boolean isInheritedProperty()
ValueManager.isInheritedProperty()
.isInheritedProperty
in interface ValueManager
isInheritedProperty
in class ColorManager
public boolean isAnimatableProperty()
ValueManager.isAnimatableProperty()
.isAnimatableProperty
in interface ValueManager
isAnimatableProperty
in class ColorManager
public boolean isAdditiveProperty()
ValueManager.isAdditiveProperty()
.isAdditiveProperty
in interface ValueManager
isAdditiveProperty
in class ColorManager
public int getPropertyType()
ValueManager.getPropertyType()
.getPropertyType
in interface ValueManager
getPropertyType
in class ColorManager
public java.lang.String getPropertyName()
ValueManager.getPropertyName()
.getPropertyName
in interface ValueManager
getPropertyName
in class ColorManager
public Value getDefaultValue()
ValueManager.getDefaultValue()
.getDefaultValue
in interface ValueManager
getDefaultValue
in class ColorManager
public Value createValue(org.w3c.css.sac.LexicalUnit lu, CSSEngine engine) throws DOMException
ValueManager.createValue(LexicalUnit,CSSEngine)
.createValue
in interface ValueManager
createValue
in class AbstractColorManager
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 AbstractColorManager
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 float getColorValue(org.w3c.css.sac.LexicalUnit lu)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.