Class SVGColorManager
java.lang.Object
org.apache.batik.css.engine.value.AbstractValueFactory
org.apache.batik.css.engine.value.AbstractValueManager
org.apache.batik.css.engine.value.IdentifierManager
org.apache.batik.css.engine.value.AbstractColorManager
org.apache.batik.css.engine.value.svg.ColorManager
org.apache.batik.css.engine.value.svg.SVGColorManager
- All Implemented Interfaces:
ValueManager
- Direct Known Subclasses:
SVGPaintManager
This class provides a manager for the SVGColor property values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ValueThe default value.protected StringThe name of the handled property.Fields inherited from class ColorManager
DEFAULT_VALUEFields inherited from class AbstractColorManager
computedValues, values -
Constructor Summary
ConstructorsConstructorDescriptionSVGColorManager(String prop) Creates a new SVGColorManager.SVGColorManager(String prop, Value v) Creates a new SVGColorManager. -
Method Summary
Modifier and TypeMethodDescriptioncomputeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) createValue(org.w3c.css.sac.LexicalUnit lu, CSSEngine engine) ImplementsValueManager.createValue(LexicalUnit,CSSEngine).protected floatgetColorValue(org.w3c.css.sac.LexicalUnit lu) Creates a float value usable as a component of an RGBColor.ImplementsValueManager.getDefaultValue().ImplementsValueManager.getPropertyName().intImplementsValueManager.getPropertyType().booleanImplementsValueManager.isAdditiveProperty().booleanImplementsValueManager.isAnimatableProperty().booleanImplementsValueManager.isInheritedProperty().Methods inherited from class AbstractColorManager
createColorComponent, createRGBColor, getIdentifiersMethods inherited from class IdentifierManager
createStringValueMethods inherited from class AbstractValueManager
createFloatValueMethods inherited from class AbstractValueFactory
createDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, resolveURI
-
Field Details
-
property
The name of the handled property. -
defaultValue
The default value.
-
-
Constructor Details
-
SVGColorManager
Creates a new SVGColorManager. The default value is black. -
SVGColorManager
-
-
Method Details
-
isInheritedProperty
public boolean isInheritedProperty()ImplementsValueManager.isInheritedProperty().- Specified by:
isInheritedPropertyin interfaceValueManager- Overrides:
isInheritedPropertyin classColorManager
-
isAnimatableProperty
public boolean isAnimatableProperty()ImplementsValueManager.isAnimatableProperty().- Specified by:
isAnimatablePropertyin interfaceValueManager- Overrides:
isAnimatablePropertyin classColorManager
-
isAdditiveProperty
public boolean isAdditiveProperty()ImplementsValueManager.isAdditiveProperty().- Specified by:
isAdditivePropertyin interfaceValueManager- Overrides:
isAdditivePropertyin classColorManager
-
getPropertyType
public int getPropertyType()ImplementsValueManager.getPropertyType().- Specified by:
getPropertyTypein interfaceValueManager- Overrides:
getPropertyTypein classColorManager
-
getPropertyName
ImplementsValueManager.getPropertyName().- Specified by:
getPropertyNamein interfaceValueManager- Overrides:
getPropertyNamein classColorManager
-
getDefaultValue
ImplementsValueManager.getDefaultValue().- Specified by:
getDefaultValuein interfaceValueManager- Overrides:
getDefaultValuein classColorManager
-
createValue
ImplementsValueManager.createValue(LexicalUnit,CSSEngine).- Specified by:
createValuein interfaceValueManager- Overrides:
createValuein classAbstractColorManager- 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) - Specified by:
computeValuein interfaceValueManager- Overrides:
computeValuein classAbstractColorManager- 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.
-
getColorValue
protected float getColorValue(org.w3c.css.sac.LexicalUnit lu) Creates a float value usable as a component of an RGBColor.
-