Package org.apache.batik.anim.dom
Class SVGOMAnimatedRect
- java.lang.Object
-
- org.apache.batik.anim.dom.AbstractSVGAnimatedValue
-
- org.apache.batik.anim.dom.SVGOMAnimatedRect
-
- All Implemented Interfaces:
AnimatedLiveAttributeValue
,LiveAttributeValue
,org.w3c.dom.svg.SVGAnimatedRect
public class SVGOMAnimatedRect extends AbstractSVGAnimatedValue implements org.w3c.dom.svg.SVGAnimatedRect
Implementation ofSVGAnimatedRect
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
SVGOMAnimatedRect.AnimSVGRect
This class represents the SVGRect returned by getAnimVal().protected class
SVGOMAnimatedRect.BaseSVGRect
This class represents the SVGRect returned by getBaseVal().
-
Field Summary
Fields Modifier and Type Field Description protected SVGOMAnimatedRect.AnimSVGRect
animVal
The animated value.protected SVGOMAnimatedRect.BaseSVGRect
baseVal
The base value.protected boolean
changing
Whether the value is changing.protected java.lang.String
defaultValue
Default value.-
Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
-
Constructor Summary
Constructors Constructor Description SVGOMAnimatedRect(AbstractElement elt, java.lang.String ns, java.lang.String ln, java.lang.String def)
Creates a new SVGOMAnimatedRect.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
Called when an Attr node has been added.void
attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)
Called when an Attr node has been modified.void
attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
Called when an Attr node has been removed.org.w3c.dom.svg.SVGRect
getAnimVal()
DOM: ImplementsSVGAnimatedRect.getAnimVal()
.org.w3c.dom.svg.SVGRect
getBaseVal()
DOM: ImplementsSVGAnimatedRect.getBaseVal()
.AnimatableValue
getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue
.protected void
updateAnimatedValue(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 SVGOMAnimatedRect.BaseSVGRect baseVal
The base value.
-
animVal
protected SVGOMAnimatedRect.AnimSVGRect animVal
The animated value.
-
changing
protected boolean changing
Whether the value is changing.
-
defaultValue
protected java.lang.String defaultValue
Default value.
-
-
Constructor Detail
-
SVGOMAnimatedRect
public SVGOMAnimatedRect(AbstractElement elt, java.lang.String ns, java.lang.String ln, java.lang.String def)
Creates a new SVGOMAnimatedRect.- Parameters:
elt
- The associated element.ns
- The attribute's namespace URI.ln
- The attribute's local name.def
- The default value for the attribute.
-
-
Method Detail
-
getBaseVal
public org.w3c.dom.svg.SVGRect getBaseVal()
DOM: ImplementsSVGAnimatedRect.getBaseVal()
.- Specified by:
getBaseVal
in interfaceorg.w3c.dom.svg.SVGAnimatedRect
-
getAnimVal
public org.w3c.dom.svg.SVGRect getAnimVal()
DOM: ImplementsSVGAnimatedRect.getAnimVal()
.- Specified by:
getAnimVal
in interfaceorg.w3c.dom.svg.SVGAnimatedRect
-
updateAnimatedValue
protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue
.- Specified by:
updateAnimatedValue
in classAbstractSVGAnimatedValue
-
getUnderlyingValue
public AnimatableValue getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue
.- Specified by:
getUnderlyingValue
in interfaceAnimatedLiveAttributeValue
-
attrAdded
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
Called when an Attr node has been added.- Specified by:
attrAdded
in 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:
attrModified
in interfaceLiveAttributeValue
-
attrRemoved
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
Called when an Attr node has been removed.- Specified by:
attrRemoved
in interfaceLiveAttributeValue
-
-