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 Classes Modifier and Type Class Description protected classSVGOMAnimatedPoints.AnimSVGPointListSVGPointListimplementation for the animated point list value.protected classSVGOMAnimatedPoints.BaseSVGPointListSVGPointListimplementation for the base point list value.
-
Field Summary
Fields Modifier and Type Field Description protected SVGOMAnimatedPoints.AnimSVGPointListanimValThe animated value.protected SVGOMAnimatedPoints.BaseSVGPointListbaseValThe base value.protected booleanchangingWhether the list is changing.protected java.lang.StringdefaultValueDefault 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 voidattrAdded(org.w3c.dom.Attr node, java.lang.String newv)Called when an Attr node has been added.voidattrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)Called when an Attr node has been modified.voidattrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)Called when an Attr node has been removed.voidcheck()Throws an exception if the points list value is malformed.org.w3c.dom.svg.SVGPointListgetAnimatedPoints()DOM: ImplementsSVGAnimatedPoints.getAnimatedPoints().org.w3c.dom.svg.SVGPointListgetPoints()DOM: ImplementsSVGAnimatedPoints.getPoints().AnimatableValuegetUnderlyingValue(AnimationTarget target)Returns the base value of the attribute as anAnimatableValue.protected voidupdateAnimatedValue(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:
getPointsin interfaceorg.w3c.dom.svg.SVGAnimatedPoints
-
getAnimatedPoints
public org.w3c.dom.svg.SVGPointList getAnimatedPoints()
DOM: ImplementsSVGAnimatedPoints.getAnimatedPoints().- Specified by:
getAnimatedPointsin 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:
getUnderlyingValuein interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue.- Specified by:
updateAnimatedValuein classAbstractSVGAnimatedValue
-
attrAdded
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)Called when an Attr node has been added.- Specified by:
attrAddedin 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:
attrModifiedin interfaceLiveAttributeValue
-
attrRemoved
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)Called when an Attr node has been removed.- Specified by:
attrRemovedin interfaceLiveAttributeValue
-
-