Package org.apache.batik.anim.dom
Class SVGOMAnimatedPreserveAspectRatio
java.lang.Object
org.apache.batik.anim.dom.AbstractSVGAnimatedValue
org.apache.batik.anim.dom.SVGOMAnimatedPreserveAspectRatio
- All Implemented Interfaces:
AnimatedLiveAttributeValue
,LiveAttributeValue
,org.w3c.dom.svg.SVGAnimatedPreserveAspectRatio
public class SVGOMAnimatedPreserveAspectRatio
extends AbstractSVGAnimatedValue
implements org.w3c.dom.svg.SVGAnimatedPreserveAspectRatio
This class implements the
SVGAnimatedPreserveAspectRatio
interface.- Version:
- $Id: SVGOMAnimatedPreserveAspectRatio.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
This class represents the SVGPreserveAspectRatio returned bygetAnimVal()
.class
This class represents the SVGPreserveAspectRatio returned bygetBaseVal()
. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe animated value.The base value.protected boolean
Whether the value is changing.Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SVGOMAnimatedPreserveAspectRatio. -
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 points list value is malformed.org.w3c.dom.svg.SVGPreserveAspectRatio
DOM: ImplementsSVGAnimatedPreserveAspectRatio.getAnimVal()
.org.w3c.dom.svg.SVGPreserveAspectRatio
DOM: ImplementsSVGAnimatedPreserveAspectRatio.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 org.apache.batik.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 value is changing.
-
-
Constructor Details
-
SVGOMAnimatedPreserveAspectRatio
Creates a new SVGOMAnimatedPreserveAspectRatio.- Parameters:
elt
- The associated element.
-
-
Method Details
-
getBaseVal
public org.w3c.dom.svg.SVGPreserveAspectRatio getBaseVal()DOM: ImplementsSVGAnimatedPreserveAspectRatio.getBaseVal()
.- Specified by:
getBaseVal
in interfaceorg.w3c.dom.svg.SVGAnimatedPreserveAspectRatio
-
getAnimVal
public org.w3c.dom.svg.SVGPreserveAspectRatio getAnimVal()DOM: ImplementsSVGAnimatedPreserveAspectRatio.getAnimVal()
.- Specified by:
getAnimVal
in interfaceorg.w3c.dom.svg.SVGAnimatedPreserveAspectRatio
-
check
public void check()Throws an exception if the points 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
-