Package org.apache.batik.anim.dom
Class AbstractSVGAnimatedValue
- java.lang.Object
-
- org.apache.batik.anim.dom.AbstractSVGAnimatedValue
-
- All Implemented Interfaces:
AnimatedLiveAttributeValue,LiveAttributeValue
- Direct Known Subclasses:
AbstractSVGAnimatedLength,SVGOMAnimatedBoolean,SVGOMAnimatedEnumeration,SVGOMAnimatedInteger,SVGOMAnimatedLengthList,SVGOMAnimatedMarkerOrientValue,SVGOMAnimatedNumber,SVGOMAnimatedNumberList,SVGOMAnimatedPathData,SVGOMAnimatedPoints,SVGOMAnimatedPreserveAspectRatio,SVGOMAnimatedRect,SVGOMAnimatedString,SVGOMAnimatedTransformList
public abstract class AbstractSVGAnimatedValue extends java.lang.Object implements AnimatedLiveAttributeValue
An abstract base class for theSVGAnimated*classes, that implements anAnimatedAttributeListenerlist.- Version:
- $Id: AbstractSVGAnimatedValue.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractElementelementThe associated element.protected booleanhasAnimValWhether there is a current animated value.protected java.util.LinkedListlistenersListener list.protected java.lang.StringlocalNameThe local name of the attribute.protected java.lang.StringnamespaceURIThe namespace URI of the attribute.
-
Constructor Summary
Constructors Constructor Description AbstractSVGAnimatedValue(AbstractElement elt, java.lang.String ns, java.lang.String ln)Creates a new AbstractSVGAnimatedValue.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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.java.lang.StringgetLocalName()Returns the local name of the attribute.java.lang.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 givenAnimatableValue.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.batik.anim.dom.AnimatedLiveAttributeValue
getUnderlyingValue
-
Methods inherited from interface org.apache.batik.dom.svg.LiveAttributeValue
attrAdded, attrModified, attrRemoved
-
-
-
-
Field Detail
-
element
protected AbstractElement element
The associated element.
-
namespaceURI
protected java.lang.String namespaceURI
The namespace URI of the attribute.
-
localName
protected java.lang.String localName
The local name of the attribute.
-
hasAnimVal
protected boolean hasAnimVal
Whether there is a current animated value.
-
listeners
protected java.util.LinkedList listeners
Listener list.
-
-
Constructor Detail
-
AbstractSVGAnimatedValue
public AbstractSVGAnimatedValue(AbstractElement elt, java.lang.String ns, java.lang.String ln)
Creates a new AbstractSVGAnimatedValue.
-
-
Method Detail
-
getNamespaceURI
public java.lang.String getNamespaceURI()
Returns the namespace URI of the attribute.- Specified by:
getNamespaceURIin interfaceAnimatedLiveAttributeValue
-
getLocalName
public java.lang.String getLocalName()
Returns the local name of the attribute.- Specified by:
getLocalNamein interfaceAnimatedLiveAttributeValue
-
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
-
updateAnimatedValue
protected abstract void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue.
-
addAnimatedAttributeListener
public void addAnimatedAttributeListener(AnimatedAttributeListener aal)
Adds a listener for changes to the animated value.- Specified by:
addAnimatedAttributeListenerin interfaceAnimatedLiveAttributeValue
-
removeAnimatedAttributeListener
public void removeAnimatedAttributeListener(AnimatedAttributeListener aal)
Removes a listener for changes to the animated value.- Specified by:
removeAnimatedAttributeListenerin interfaceAnimatedLiveAttributeValue
-
fireBaseAttributeListeners
protected void fireBaseAttributeListeners()
Fires the listeners for the base value.
-
fireAnimatedAttributeListeners
protected void fireAnimatedAttributeListeners()
Fires the listeners for the animated value.
-
-