public abstract class AbstractSVGAnimatedLength extends AbstractSVGAnimatedValue implements org.w3c.dom.svg.SVGAnimatedLength, LiveAttributeValue
SVGAnimatedLength
interface.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractSVGAnimatedLength.AnimSVGLength
This class represents the SVGLength returned by
getAnimVal() . |
protected class |
AbstractSVGAnimatedLength.BaseSVGLength
This class represents the SVGLength returned by
getBaseVal() . |
Modifier and Type | Field and Description |
---|---|
protected AbstractSVGAnimatedLength.AnimSVGLength |
animVal
The current animated value.
|
protected AbstractSVGAnimatedLength.BaseSVGLength |
baseVal
The base value.
|
protected boolean |
changing
Whether the value is changing.
|
protected short |
direction
This length's direction.
|
static short |
HORIZONTAL_LENGTH
This constant represents horizontal lengths.
|
protected boolean |
nonNegative
Whether the value must be non-negative.
|
static short |
OTHER_LENGTH
This constant represents other lengths.
|
static short |
VERTICAL_LENGTH
This constant represents vertical lengths.
|
element, hasAnimVal, listeners, localName, namespaceURI
Constructor and Description |
---|
AbstractSVGAnimatedLength(AbstractElement elt,
java.lang.String ns,
java.lang.String ln,
short dir,
boolean nonneg)
Creates a new SVGAnimatedLength.
|
Modifier and Type | Method and Description |
---|---|
void |
attrAdded(Attr node,
java.lang.String newv)
Called when an Attr node has been added.
|
protected void |
attrChanged()
Called when the attribute has changed in some way.
|
void |
attrModified(Attr node,
java.lang.String oldv,
java.lang.String newv)
Called when an Attr node has been modified.
|
void |
attrRemoved(Attr node,
java.lang.String oldv)
Called when an Attr node has been removed.
|
org.w3c.dom.svg.SVGLength |
getAnimVal()
DOM: Implements
SVGAnimatedLength.getAnimVal() . |
org.w3c.dom.svg.SVGLength |
getBaseVal()
DOM: Implements
SVGAnimatedLength.getBaseVal() . |
float |
getCheckedValue()
Gets the current animated length value.
|
protected abstract java.lang.String |
getDefaultValue() |
AnimatableValue |
getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an
AnimatableValue . |
protected void |
updateAnimatedValue(AnimatableValue val)
Updates the animated value with the given
AnimatableValue . |
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListener
public static final short HORIZONTAL_LENGTH
public static final short VERTICAL_LENGTH
public static final short OTHER_LENGTH
protected short direction
protected AbstractSVGAnimatedLength.BaseSVGLength baseVal
protected AbstractSVGAnimatedLength.AnimSVGLength animVal
protected boolean changing
protected boolean nonNegative
public AbstractSVGAnimatedLength(AbstractElement elt, java.lang.String ns, java.lang.String ln, short dir, boolean nonneg)
elt
- The associated element.ns
- The attribute's namespace URI.ln
- The attribute's local name.dir
- The length's direction.nonneg
- Whether the length must be non-negative.protected abstract java.lang.String getDefaultValue()
public org.w3c.dom.svg.SVGLength getBaseVal()
SVGAnimatedLength.getBaseVal()
.getBaseVal
in interface org.w3c.dom.svg.SVGAnimatedLength
public org.w3c.dom.svg.SVGLength getAnimVal()
SVGAnimatedLength.getAnimVal()
.getAnimVal
in interface org.w3c.dom.svg.SVGAnimatedLength
public float getCheckedValue()
protected void updateAnimatedValue(AnimatableValue val)
AnimatableValue
.updateAnimatedValue
in class AbstractSVGAnimatedValue
public AnimatableValue getUnderlyingValue(AnimationTarget target)
AnimatableValue
.getUnderlyingValue
in interface AnimatedLiveAttributeValue
public void attrAdded(Attr node, java.lang.String newv)
attrAdded
in interface LiveAttributeValue
public void attrModified(Attr node, java.lang.String oldv, java.lang.String newv)
attrModified
in interface LiveAttributeValue
public void attrRemoved(Attr node, java.lang.String oldv)
attrRemoved
in interface LiveAttributeValue
protected void attrChanged()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.