org.apache.batik.dom.svg

Class AbstractSVGAnimatedValue

public abstract class AbstractSVGAnimatedValue extends Object implements AnimatedLiveAttributeValue

An abstract base class for the SVGAnimated* classes, that implements an AnimatedAttributeListener list.
Field Summary
protected AbstractElementelement
The associated element.
protected booleanhasAnimVal
Whether there is a current animated value.
protected LinkedListlisteners
Listener list.
protected StringlocalName
The local name of the attribute.
protected StringnamespaceURI
The namespace URI of the attribute.
Constructor Summary
AbstractSVGAnimatedValue(AbstractElement elt, String ns, String ln)
Creates a new AbstractSVGAnimatedValue.
Method Summary
voidaddAnimatedAttributeListener(AnimatedAttributeListener aal)
Adds a listener for changes to the animated value.
protected voidfireAnimatedAttributeListeners()
Fires the listeners for the animated value.
protected voidfireBaseAttributeListeners()
Fires the listeners for the base value.
StringgetLocalName()
Returns the local name of the attribute.
StringgetNamespaceURI()
Returns the namespace URI of the attribute.
booleanisSpecified()
Returns whether this animated value has a specified value.
voidremoveAnimatedAttributeListener(AnimatedAttributeListener aal)
Removes a listener for changes to the animated value.
protected abstract voidupdateAnimatedValue(AnimatableValue val)
Updates the animated value with the given AnimatableValue.

Field Detail

element

protected AbstractElement element
The associated element.

hasAnimVal

protected boolean hasAnimVal
Whether there is a current animated value.

listeners

protected LinkedList listeners
Listener list.

localName

protected String localName
The local name of the attribute.

namespaceURI

protected String namespaceURI
The namespace URI of the attribute.

Constructor Detail

AbstractSVGAnimatedValue

public AbstractSVGAnimatedValue(AbstractElement elt, String ns, String ln)
Creates a new AbstractSVGAnimatedValue.

Method Detail

addAnimatedAttributeListener

public void addAnimatedAttributeListener(AnimatedAttributeListener aal)
Adds a listener for changes to the animated value.

fireAnimatedAttributeListeners

protected void fireAnimatedAttributeListeners()
Fires the listeners for the animated value.

fireBaseAttributeListeners

protected void fireBaseAttributeListeners()
Fires the listeners for the base value.

getLocalName

public String getLocalName()
Returns the local name of the attribute.

getNamespaceURI

public String getNamespaceURI()
Returns the namespace URI of the attribute.

isSpecified

public boolean isSpecified()
Returns whether this animated value has a specified value.

Returns: true if the DOM attribute is specified or if the attribute has an animated value, false otherwise

removeAnimatedAttributeListener

public void removeAnimatedAttributeListener(AnimatedAttributeListener aal)
Removes a listener for changes to the animated value.

updateAnimatedValue

protected abstract void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the given AnimatableValue.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.