public class SVGColorManager extends ColorManager
| Modifier and Type | Field and Description |
|---|---|
protected Value |
defaultValue
The default value.
|
protected String |
property
The name of the handled property.
|
DEFAULT_VALUEcomputedValues, values| Constructor and Description |
|---|
SVGColorManager(String prop)
Creates a new SVGColorManager.
|
SVGColorManager(String prop,
Value v)
Creates a new SVGColorManager.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
computeValue(CSSStylableElement elt,
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(). |
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, getIdentifierscreateStringValuecreateFloatValuecreateDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, resolveURIprotected String property
protected Value defaultValue
public SVGColorManager(String prop)
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 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 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.DOMExceptionpublic Value computeValue(CSSStylableElement elt, 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)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.