org.apache.batik.dom.svg

Class SVGStylableElement.PresentationAttributePaintValue

public class SVGStylableElement.PresentationAttributePaintValue extends CSSOMSVGPaint implements LiveAttributeValue, ValueProvider

To manage a presentation attribute SVGPaint value.
Field Summary
protected CSSEnginecssEngine
The CSS engine.
protected booleanmutate
Whether the mutation comes from this object.
protected Stringproperty
The property name.
protected Valuevalue
The value.
Constructor Summary
PresentationAttributePaintValue(CSSEngine eng, String prop)
Creates a new PresentationAttributeColorValue.
Method Summary
voidattrAdded(Attr node, String newv)
Called when an Attr node has been added.
voidattrModified(Attr node, String oldv, String newv)
Called when an Attr node has been modified.
voidattrRemoved(Attr node, String oldv)
Called when an Attr node has been removed.
ValuegetValue()
Returns the current value associated with this object.

Field Detail

cssEngine

protected CSSEngine cssEngine
The CSS engine.

mutate

protected boolean mutate
Whether the mutation comes from this object.

property

protected String property
The property name.

value

protected Value value
The value.

Constructor Detail

PresentationAttributePaintValue

public PresentationAttributePaintValue(CSSEngine eng, String prop)
Creates a new PresentationAttributeColorValue.

Method Detail

attrAdded

public void attrAdded(Attr node, String newv)
Called when an Attr node has been added.

attrModified

public void attrModified(Attr node, String oldv, String newv)
Called when an Attr node has been modified.

attrRemoved

public void attrRemoved(Attr node, String oldv)
Called when an Attr node has been removed.

getValue

public Value getValue()
Returns the current value associated with this object.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.