Package org.apache.batik.anim.dom
Class SVGOMAnimatedPoints
java.lang.Object
org.apache.batik.anim.dom.AbstractSVGAnimatedValue
org.apache.batik.anim.dom.SVGOMAnimatedPoints
- All Implemented Interfaces:
AnimatedLiveAttributeValue
,LiveAttributeValue
,org.w3c.dom.svg.SVGAnimatedPoints
public class SVGOMAnimatedPoints
extends AbstractSVGAnimatedValue
implements org.w3c.dom.svg.SVGAnimatedPoints
This class is the implementation of the SVGAnimatedPoints interface.
- Version:
- $Id: SVGOMAnimatedPoints.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
SVGPointList
implementation for the animated point list value.protected class
SVGPointList
implementation for the base point list value. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SVGOMAnimatedPoints.AnimSVGPointList
The animated value.protected SVGOMAnimatedPoints.BaseSVGPointList
The base value.protected boolean
Whether the list is changing.protected String
Default value for the point list.Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
Constructor Summary
ConstructorsConstructorDescriptionSVGOMAnimatedPoints
(AbstractElement elt, String ns, String ln, String defaultValue) Creates a new SVGOMAnimatedPoints. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when an Attr node has been added.void
attrModified
(Attr node, String oldv, String newv) Called when an Attr node has been modified.void
attrRemoved
(Attr node, String oldv) Called when an Attr node has been removed.void
check()
Throws an exception if the points list value is malformed.org.w3c.dom.svg.SVGPointList
DOM: ImplementsSVGAnimatedPoints.getAnimatedPoints()
.org.w3c.dom.svg.SVGPointList
DOM: ImplementsSVGAnimatedPoints.getPoints()
.getUnderlyingValue
(AnimationTarget target) Returns the base value of the attribute as anAnimatableValue
.protected void
Updates the animated value with the givenAnimatableValue
.Methods inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListener
-
Field Details
-
baseVal
The base value. -
animVal
The animated value. -
changing
protected boolean changingWhether the list is changing. -
defaultValue
Default value for the point list.
-
-
Constructor Details
-
SVGOMAnimatedPoints
Creates a new SVGOMAnimatedPoints.- Parameters:
elt
- The associated element.ns
- The attribute's namespace URI.ln
- The attribute's local name.defaultValue
- The default value if the attribute is not specified.
-
-
Method Details
-
getPoints
public org.w3c.dom.svg.SVGPointList getPoints()DOM: ImplementsSVGAnimatedPoints.getPoints()
.- Specified by:
getPoints
in interfaceorg.w3c.dom.svg.SVGAnimatedPoints
-
getAnimatedPoints
public org.w3c.dom.svg.SVGPointList getAnimatedPoints()DOM: ImplementsSVGAnimatedPoints.getAnimatedPoints()
.- Specified by:
getAnimatedPoints
in interfaceorg.w3c.dom.svg.SVGAnimatedPoints
-
check
public void check()Throws an exception if the points list value is malformed. -
getUnderlyingValue
Returns the base value of the attribute as anAnimatableValue
.- Specified by:
getUnderlyingValue
in interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
Updates the animated value with the givenAnimatableValue
.- Specified by:
updateAnimatedValue
in classAbstractSVGAnimatedValue
-
attrAdded
Called when an Attr node has been added.- Specified by:
attrAdded
in interfaceLiveAttributeValue
-
attrModified
Called when an Attr node has been modified.- Specified by:
attrModified
in interfaceLiveAttributeValue
-
attrRemoved
Called when an Attr node has been removed.- Specified by:
attrRemoved
in interfaceLiveAttributeValue
-