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 theSVGAnimatedPreserveAspectRatio
interface.- Version:
- $Id: SVGOMAnimatedPreserveAspectRatio.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SVGOMAnimatedPreserveAspectRatio.AnimSVGPARValue
This class represents the SVGPreserveAspectRatio returned bygetAnimVal()
.class
SVGOMAnimatedPreserveAspectRatio.BaseSVGPARValue
This class represents the SVGPreserveAspectRatio returned bygetBaseVal()
.
-
Field Summary
Fields Modifier and Type Field Description protected SVGOMAnimatedPreserveAspectRatio.AnimSVGPARValue
animVal
The animated value.protected SVGOMAnimatedPreserveAspectRatio.BaseSVGPARValue
baseVal
The base value.protected boolean
changing
Whether the value is changing.-
Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
-
Constructor Summary
Constructors Constructor Description SVGOMAnimatedPreserveAspectRatio(AbstractElement elt)
Creates a new SVGOMAnimatedPreserveAspectRatio.
-
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.void
check()
Throws an exception if the points list value is malformed.org.w3c.dom.svg.SVGPreserveAspectRatio
getAnimVal()
DOM: ImplementsSVGAnimatedPreserveAspectRatio.getAnimVal()
.org.w3c.dom.svg.SVGPreserveAspectRatio
getBaseVal()
DOM: ImplementsSVGAnimatedPreserveAspectRatio.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 SVGOMAnimatedPreserveAspectRatio.BaseSVGPARValue baseVal
The base value.
-
animVal
protected SVGOMAnimatedPreserveAspectRatio.AnimSVGPARValue animVal
The animated value.
-
changing
protected boolean changing
Whether the value is changing.
-
-
Constructor Detail
-
SVGOMAnimatedPreserveAspectRatio
public SVGOMAnimatedPreserveAspectRatio(AbstractElement elt)
Creates a new SVGOMAnimatedPreserveAspectRatio.- Parameters:
elt
- The associated element.
-
-
Method Detail
-
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
public AnimatableValue getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue
.- Specified by:
getUnderlyingValue
in interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue
.- Specified by:
updateAnimatedValue
in classAbstractSVGAnimatedValue
-
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
-
-