org.apache.batik.dom.svg
public abstract class AbstractSVGAnimatedLength extends AbstractSVGAnimatedValue implements SVGAnimatedLength, LiveAttributeValue
| Nested Class Summary | |
|---|---|
| protected class | AbstractSVGAnimatedLength.AnimSVGLength
This class represents the SVGLength returned by getAnimVal. |
| protected class | AbstractSVGAnimatedLength.BaseSVGLength |
| Field Summary | |
|---|---|
| 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. |
| Constructor Summary | |
|---|---|
| AbstractSVGAnimatedLength(AbstractElement elt, String ns, String ln, short dir, boolean nonneg)
Creates a new SVGAnimatedLength. | |
| Method Summary | |
|---|---|
| void | attrAdded(Attr node, 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, 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. |
| SVGLength | getAnimVal()
DOM: Implements SVGAnimatedLength#getAnimVal(). |
| SVGLength | getBaseVal()
DOM: Implements SVGAnimatedLength#getBaseVal(). |
| float | getCheckedValue()
Gets the current animated length value. |
| protected abstract 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. |
Parameters: 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.
Returns: the default value to use when the associated attribute was not specified.