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
Nested ClassesModifier and TypeClassDescriptionprotected classSVGLengthListimplementation for the animated length list value.classSVGLengthListimplementation for the base length list value. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe animated value.The base value.protected booleanWhether the list is changing.protected StringDefault value for the length list.protected shortThe direction of the lengths in this list.protected booleanWhether empty length lists are allowed.Fields inherited from class io.sf.carte.echosvg.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI -
Constructor Summary
ConstructorsConstructorDescriptionSVGOMAnimatedLengthList(AbstractElement elt, String ns, String ln, String defaultValue, boolean emptyAllowed, short direction) Creates a new SVGOMAnimatedLengthList. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when an Attr node has been added.voidattrModified(Attr node, String oldv, String newv) Called when an Attr node has been modified.voidattrRemoved(Attr node, String oldv) Called when an Attr node has been removed.voidcheck()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 voidUpdates 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:
getBaseValin interfaceSVGAnimatedLengthList
-
getAnimVal
DOM: ImplementsSVGAnimatedLengthList.getAnimVal().- Specified by:
getAnimValin 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:
getUnderlyingValuein interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
Updates the animated value with the givenAnimatableValue.- Specified by:
updateAnimatedValuein classAbstractSVGAnimatedValue
-
attrAdded
Called when an Attr node has been added.- Specified by:
attrAddedin interfaceLiveAttributeValue
-
attrModified
Called when an Attr node has been modified.- Specified by:
attrModifiedin interfaceLiveAttributeValue
-
attrRemoved
Called when an Attr node has been removed.- Specified by:
attrRemovedin interfaceLiveAttributeValue
-