Class SVGPaintManager
- 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
-
- org.apache.batik.css.engine.value.svg.SVGPaintManager
-
- All Implemented Interfaces:
ValueManager
public class SVGPaintManager extends SVGColorManager
This class provides a manager for the SVGPaint property values.
-
-
Field Summary
-
Fields inherited from class org.apache.batik.css.engine.value.svg.SVGColorManager
defaultValue, property
-
Fields inherited from class org.apache.batik.css.engine.value.svg.ColorManager
DEFAULT_VALUE
-
Fields inherited from class org.apache.batik.css.engine.value.AbstractColorManager
computedValues, values
-
-
Constructor Summary
Constructors Constructor Description SVGPaintManager(java.lang.String prop)
Creates a new SVGPaintManager.SVGPaintManager(java.lang.String prop, Value v)
Creates a new SVGPaintManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
ImplementsValueManager.createValue(LexicalUnit,CSSEngine)
.int
getPropertyType()
ImplementsValueManager.getPropertyType()
.boolean
isAdditiveProperty()
ImplementsValueManager.isAdditiveProperty()
.boolean
isAnimatableProperty()
ImplementsValueManager.isAnimatableProperty()
.boolean
isInheritedProperty()
ImplementsValueManager.isInheritedProperty()
.-
Methods inherited from class org.apache.batik.css.engine.value.svg.SVGColorManager
getColorValue, getDefaultValue, getPropertyName
-
Methods inherited from class org.apache.batik.css.engine.value.AbstractColorManager
createColorComponent, createRGBColor, getIdentifiers
-
Methods inherited from class org.apache.batik.css.engine.value.IdentifierManager
createStringValue
-
Methods inherited from class org.apache.batik.css.engine.value.AbstractValueManager
createFloatValue
-
Methods inherited from class org.apache.batik.css.engine.value.AbstractValueFactory
createDOMException, createInvalidFloatTypeDOMException, createInvalidFloatValueDOMException, createInvalidIdentifierDOMException, createInvalidLexicalUnitDOMException, createInvalidStringTypeDOMException, createMalformedLexicalUnitDOMException, resolveURI
-
-
-
-
Constructor Detail
-
SVGPaintManager
public SVGPaintManager(java.lang.String prop)
Creates a new SVGPaintManager.
-
SVGPaintManager
public SVGPaintManager(java.lang.String prop, Value v)
Creates a new SVGPaintManager.- Parameters:
prop
- The property name.v
- The default value.
-
-
Method Detail
-
isInheritedProperty
public boolean isInheritedProperty()
ImplementsValueManager.isInheritedProperty()
.- Specified by:
isInheritedProperty
in interfaceValueManager
- Overrides:
isInheritedProperty
in classSVGColorManager
-
isAnimatableProperty
public boolean isAnimatableProperty()
ImplementsValueManager.isAnimatableProperty()
.- Specified by:
isAnimatableProperty
in interfaceValueManager
- Overrides:
isAnimatableProperty
in classSVGColorManager
-
isAdditiveProperty
public boolean isAdditiveProperty()
ImplementsValueManager.isAdditiveProperty()
.- Specified by:
isAdditiveProperty
in interfaceValueManager
- Overrides:
isAdditiveProperty
in classSVGColorManager
-
getPropertyType
public int getPropertyType()
ImplementsValueManager.getPropertyType()
.- Specified by:
getPropertyType
in interfaceValueManager
- Overrides:
getPropertyType
in classSVGColorManager
-
createValue
public Value createValue(org.w3c.css.sac.LexicalUnit lu, CSSEngine engine) throws org.w3c.dom.DOMException
ImplementsValueManager.createValue(LexicalUnit,CSSEngine)
.- Specified by:
createValue
in interfaceValueManager
- Overrides:
createValue
in classSVGColorManager
- Parameters:
lu
- The SAC lexical unit used to create the value.engine
- The calling CSSEngine.- Throws:
org.w3c.dom.DOMException
-
computeValue
public Value computeValue(CSSStylableElement elt, java.lang.String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value)
- Specified by:
computeValue
in interfaceValueManager
- Overrides:
computeValue
in classSVGColorManager
- 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.
-
-