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_VALUEcomputedValues, 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)
|
private Value |
createCIELabColorValue(org.w3c.css.sac.LexicalUnit lu,
Value v) |
private Value |
createCIELCHColorValue(org.w3c.css.sac.LexicalUnit lu,
Value v) |
private Value |
createDeviceColorValue(org.w3c.css.sac.LexicalUnit lu,
Value v,
int expectedComponents) |
private Value |
createICCColorValue(org.w3c.css.sac.LexicalUnit lu,
Value v) |
private Value |
createICCNamedColorValue(org.w3c.css.sac.LexicalUnit lu,
Value v) |
Value |
createValue(org.w3c.css.sac.LexicalUnit lu,
CSSEngine engine)
Implements
ValueManager.createValue(LexicalUnit,CSSEngine). |
private void |
expectComma(org.w3c.css.sac.LexicalUnit lu) |
private void |
expectIdent(org.w3c.css.sac.LexicalUnit lu) |
private void |
expectNonNull(org.w3c.css.sac.LexicalUnit lu) |
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(). |
private Value |
parseColor12Function(org.w3c.css.sac.LexicalUnit lu,
Value v) |
private Value |
parseColorFunction(org.w3c.css.sac.LexicalUnit lu,
Value v) |
createColorComponent, createRGBColor, getIdentifierscreateStringValuecreateFloatValuecreateDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, resolveURIprotected 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 ValueManagerisInheritedProperty in class ColorManagerpublic boolean isAnimatableProperty()
ValueManager.isAnimatableProperty().isAnimatableProperty in interface ValueManagerisAnimatableProperty in class ColorManagerpublic boolean isAdditiveProperty()
ValueManager.isAdditiveProperty().isAdditiveProperty in interface ValueManagerisAdditiveProperty in class ColorManagerpublic int getPropertyType()
ValueManager.getPropertyType().getPropertyType in interface ValueManagergetPropertyType in class ColorManagerpublic java.lang.String getPropertyName()
ValueManager.getPropertyName().getPropertyName in interface ValueManagergetPropertyName in class ColorManagerpublic Value getDefaultValue()
ValueManager.getDefaultValue().getDefaultValue in interface ValueManagergetDefaultValue in class ColorManagerpublic Value createValue(org.w3c.css.sac.LexicalUnit lu, CSSEngine engine) throws org.w3c.dom.DOMException
ValueManager.createValue(LexicalUnit,CSSEngine).createValue in interface ValueManagercreateValue in class AbstractColorManagerlu - The SAC lexical unit used to create the value.engine - The calling CSSEngine.org.w3c.dom.DOMExceptionprivate Value createICCNamedColorValue(org.w3c.css.sac.LexicalUnit lu, Value v)
private Value createCIELabColorValue(org.w3c.css.sac.LexicalUnit lu, Value v)
private Value createCIELCHColorValue(org.w3c.css.sac.LexicalUnit lu, Value v)
private Value createDeviceColorValue(org.w3c.css.sac.LexicalUnit lu, Value v, int expectedComponents)
private void expectIdent(org.w3c.css.sac.LexicalUnit lu)
private void expectComma(org.w3c.css.sac.LexicalUnit lu)
private void expectNonNull(org.w3c.css.sac.LexicalUnit lu)
public Value computeValue(CSSStylableElement elt, java.lang.String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value)
computeValue in interface ValueManagercomputeValue in class AbstractColorManagerelt - 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)