Package org.apache.batik.anim.dom
Class SVGOMAnimatedLengthList
- java.lang.Object
-
- org.apache.batik.anim.dom.AbstractSVGAnimatedValue
-
- org.apache.batik.anim.dom.SVGOMAnimatedLengthList
-
- All Implemented Interfaces:
AnimatedLiveAttributeValue,LiveAttributeValue,org.w3c.dom.svg.SVGAnimatedLengthList
public class SVGOMAnimatedLengthList extends AbstractSVGAnimatedValue implements org.w3c.dom.svg.SVGAnimatedLengthList
This class is the implementation of theSVGAnimatedLengthListinterface.- Version:
- $Id: SVGOMAnimatedLengthList.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classSVGOMAnimatedLengthList.AnimSVGLengthListSVGLengthListimplementation for the animated length list value.classSVGOMAnimatedLengthList.BaseSVGLengthListSVGLengthListimplementation for the base length list value.
-
Field Summary
Fields Modifier and Type Field Description protected SVGOMAnimatedLengthList.AnimSVGLengthListanimValThe animated value.protected SVGOMAnimatedLengthList.BaseSVGLengthListbaseValThe base value.protected booleanchangingWhether the list is changing.protected java.lang.StringdefaultValueDefault value for the length list.protected shortdirectionThe direction of the lengths in this list.protected booleanemptyAllowedWhether empty length lists are allowed.-
Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
-
Constructor Summary
Constructors Constructor Description SVGOMAnimatedLengthList(AbstractElement elt, java.lang.String ns, java.lang.String ln, java.lang.String defaultValue, boolean emptyAllowed, short direction)Creates a new SVGOMAnimatedLengthList.
-
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 length list value is malformed.org.w3c.dom.svg.SVGLengthListgetAnimVal()DOM: ImplementsSVGAnimatedLengthList.getAnimVal().org.w3c.dom.svg.SVGLengthListgetBaseVal()DOM: ImplementsSVGAnimatedLengthList.getBaseVal().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 SVGOMAnimatedLengthList.BaseSVGLengthList baseVal
The base value.
-
animVal
protected SVGOMAnimatedLengthList.AnimSVGLengthList animVal
The animated value.
-
changing
protected boolean changing
Whether the list is changing.
-
defaultValue
protected java.lang.String defaultValue
Default value for the length list.
-
emptyAllowed
protected boolean emptyAllowed
Whether empty length lists are allowed.
-
direction
protected short direction
The direction of the lengths in this list.
-
-
Constructor Detail
-
SVGOMAnimatedLengthList
public SVGOMAnimatedLengthList(AbstractElement elt, java.lang.String ns, java.lang.String ln, java.lang.String defaultValue, boolean emptyAllowed, short direction)
Creates a new SVGOMAnimatedLengthList.- 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.emptyAllowed- Whether a list with no items is allowed.direction- The direction of the lengths in the list.
-
-
Method Detail
-
getBaseVal
public org.w3c.dom.svg.SVGLengthList getBaseVal()
DOM: ImplementsSVGAnimatedLengthList.getBaseVal().- Specified by:
getBaseValin interfaceorg.w3c.dom.svg.SVGAnimatedLengthList
-
getAnimVal
public org.w3c.dom.svg.SVGLengthList getAnimVal()
DOM: ImplementsSVGAnimatedLengthList.getAnimVal().- Specified by:
getAnimValin interfaceorg.w3c.dom.svg.SVGAnimatedLengthList
-
check
public void check()
Throws an exception if the length 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
-
-