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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
SVGOMAnimatedPoints.AnimSVGPointList
SVGPointList
implementation for the animated point list value.protected class
SVGOMAnimatedPoints.BaseSVGPointList
SVGPointList
implementation for the base point list value.
-
Field Summary
Fields Modifier and Type Field Description protected SVGOMAnimatedPoints.AnimSVGPointList
animVal
The animated value.protected SVGOMAnimatedPoints.BaseSVGPointList
baseVal
The base value.protected boolean
changing
Whether the list is changing.protected java.lang.String
defaultValue
Default value for the point list.-
Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
-
Constructor Summary
Constructors Constructor Description SVGOMAnimatedPoints(AbstractElement elt, java.lang.String ns, java.lang.String ln, java.lang.String defaultValue)
Creates a new SVGOMAnimatedPoints.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
Called when an Attr node has been added.void
attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)
Called when an Attr node has been modified.void
attrRemoved(org.w3c.dom.Attr node, java.lang.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
getAnimatedPoints()
DOM: ImplementsSVGAnimatedPoints.getAnimatedPoints()
.org.w3c.dom.svg.SVGPointList
getPoints()
DOM: ImplementsSVGAnimatedPoints.getPoints()
.AnimatableValue
getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue
.protected void
updateAnimatedValue(AnimatableValue val)
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 Detail
-
baseVal
protected SVGOMAnimatedPoints.BaseSVGPointList baseVal
The base value.
-
animVal
protected SVGOMAnimatedPoints.AnimSVGPointList animVal
The animated value.
-
changing
protected boolean changing
Whether the list is changing.
-
defaultValue
protected java.lang.String defaultValue
Default value for the point list.
-
-
Constructor Detail
-
SVGOMAnimatedPoints
public SVGOMAnimatedPoints(AbstractElement elt, java.lang.String ns, java.lang.String ln, java.lang.String defaultValue)
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 Detail
-
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
public AnimatableValue getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue
.- Specified by:
getUnderlyingValue
in interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue
.- Specified by:
updateAnimatedValue
in classAbstractSVGAnimatedValue
-
attrAdded
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
Called when an Attr node has been added.- Specified by:
attrAdded
in interfaceLiveAttributeValue
-
attrModified
public void attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)
Called when an Attr node has been modified.- Specified by:
attrModified
in interfaceLiveAttributeValue
-
attrRemoved
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
Called when an Attr node has been removed.- Specified by:
attrRemoved
in interfaceLiveAttributeValue
-
-