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
An abstract base class for the
SVGAnimated* classes, that
implements an AnimatedAttributeListener list.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractElementThe associated element.protected booleanWhether there is a current animated value.protected LinkedListListener list.protected StringThe local name of the attribute.protected StringThe namespace URI of the attribute. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSVGAnimatedValue(AbstractElement elt, String ns, String ln) Creates a new AbstractSVGAnimatedValue. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener for changes to the animated value.protected voidFires the listeners for the animated value.protected voidFires the listeners for the base value.Returns the local name of the attribute.Returns the namespace URI of the attribute.booleanReturns whether this animated value has a specified value.voidRemoves a listener for changes to the animated value.protected abstract voidUpdates the animated value with the givenAnimatableValue.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AnimatedLiveAttributeValue
getUnderlyingValueMethods inherited from interface LiveAttributeValue
attrAdded, attrModified, attrRemoved
-
Field Details
-
element
The associated element. -
namespaceURI
The namespace URI of the attribute. -
localName
The local name of the attribute. -
hasAnimVal
protected boolean hasAnimValWhether there is a current animated value. -
listeners
Listener list.
-
-
Constructor Details
-
AbstractSVGAnimatedValue
Creates a new AbstractSVGAnimatedValue.
-
-
Method Details
-
getNamespaceURI
Returns the namespace URI of the attribute.- Specified by:
getNamespaceURIin interfaceAnimatedLiveAttributeValue
-
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
Updates the animated value with the givenAnimatableValue. -
addAnimatedAttributeListener
Adds a listener for changes to the animated value.- Specified by:
addAnimatedAttributeListenerin interfaceAnimatedLiveAttributeValue
-
removeAnimatedAttributeListener
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.
-