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 theSVGAnimatedPreserveAspectRatiointerface.- Version:
- $Id: SVGOMAnimatedPreserveAspectRatio.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSVGOMAnimatedPreserveAspectRatio.AnimSVGPARValueThis class represents the SVGPreserveAspectRatio returned bygetAnimVal().classSVGOMAnimatedPreserveAspectRatio.BaseSVGPARValueThis class represents the SVGPreserveAspectRatio returned bygetBaseVal().
-
Field Summary
Fields Modifier and Type Field Description protected SVGOMAnimatedPreserveAspectRatio.AnimSVGPARValueanimValThe animated value.protected SVGOMAnimatedPreserveAspectRatio.BaseSVGPARValuebaseValThe base value.protected booleanchangingWhether 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 voidattrAdded(org.w3c.dom.Attr node, java.lang.String newv)Called when an Attr node has been added.voidattrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)Called when an Attr node has been modified.voidattrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)Called when an Attr node has been removed.voidcheck()Throws an exception if the points list value is malformed.org.w3c.dom.svg.SVGPreserveAspectRatiogetAnimVal()DOM: ImplementsSVGAnimatedPreserveAspectRatio.getAnimVal().org.w3c.dom.svg.SVGPreserveAspectRatiogetBaseVal()DOM: ImplementsSVGAnimatedPreserveAspectRatio.getBaseVal().AnimatableValuegetUnderlyingValue(AnimationTarget target)Returns the base value of the attribute as anAnimatableValue.protected voidupdateAnimatedValue(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:
getBaseValin interfaceorg.w3c.dom.svg.SVGAnimatedPreserveAspectRatio
-
getAnimVal
public org.w3c.dom.svg.SVGPreserveAspectRatio getAnimVal()
DOM: ImplementsSVGAnimatedPreserveAspectRatio.getAnimVal().- Specified by:
getAnimValin 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:
getUnderlyingValuein interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue.- Specified by:
updateAnimatedValuein classAbstractSVGAnimatedValue
-
attrAdded
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)Called when an Attr node has been added.- Specified by:
attrAddedin 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:
attrModifiedin interfaceLiveAttributeValue
-
attrRemoved
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)Called when an Attr node has been removed.- Specified by:
attrRemovedin interfaceLiveAttributeValue
-
-