java.lang.Object
io.sf.carte.echosvg.anim.dom.AbstractSVGAnimatedValue
io.sf.carte.echosvg.anim.dom.SVGOMAnimatedLengthList
- All Implemented Interfaces:
AnimatedLiveAttributeValue
,LiveAttributeValue
,SVGAnimatedLengthList
public class SVGOMAnimatedLengthList
extends AbstractSVGAnimatedValue
implements SVGAnimatedLengthList
This class is the implementation of the
SVGAnimatedLengthList
interface.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
SVGLengthList
implementation for the animated length list value.class
SVGLengthList
implementation for the base length list value. -
Field Summary
Modifier and TypeFieldDescriptionThe animated value.The base value.protected boolean
Whether the list is changing.protected String
Default value for the length list.protected short
The direction of the lengths in this list.protected boolean
Whether empty length lists are allowed.Fields inherited from class io.sf.carte.echosvg.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
Constructor Summary
ConstructorDescriptionSVGOMAnimatedLengthList
(AbstractElement elt, String ns, String ln, String defaultValue, boolean emptyAllowed, short direction) Creates a new SVGOMAnimatedLengthList. -
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 length list value is malformed.DOM: ImplementsSVGAnimatedLengthList.getAnimVal()
.DOM: ImplementsSVGAnimatedLengthList.getBaseVal()
.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 io.sf.carte.echosvg.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 length list. -
emptyAllowed
protected boolean emptyAllowedWhether empty length lists are allowed. -
direction
protected short directionThe direction of the lengths in this list.
-
-
Constructor Details
-
SVGOMAnimatedLengthList
public SVGOMAnimatedLengthList(AbstractElement elt, String ns, String ln, 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 Details
-
getBaseVal
DOM: ImplementsSVGAnimatedLengthList.getBaseVal()
.- Specified by:
getBaseVal
in interfaceSVGAnimatedLengthList
-
getAnimVal
DOM: ImplementsSVGAnimatedLengthList.getAnimVal()
.- Specified by:
getAnimVal
in interfaceSVGAnimatedLengthList
-
check
public void check()Throws an exception if the length 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
-