org.apache.batik.dom.svg
Class SVGOMAnimatedPreserveAspectRatio

java.lang.Object
  extended by org.apache.batik.dom.svg.AbstractSVGAnimatedValue
      extended by org.apache.batik.dom.svg.SVGOMAnimatedPreserveAspectRatio
All Implemented Interfaces:
AnimatedLiveAttributeValue, LiveAttributeValue

public class SVGOMAnimatedPreserveAspectRatio
extends AbstractSVGAnimatedValue

This class implements the SVGAnimatedPreserveAspectRatio interface.


Nested Class Summary
 class SVGOMAnimatedPreserveAspectRatio.AnimSVGPARValue
          This class represents the SVGPreserveAspectRatio returned by getAnimVal().
 class SVGOMAnimatedPreserveAspectRatio.BaseSVGPARValue
          This class represents the SVGPreserveAspectRatio returned by getBaseVal().
 
Field Summary
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.dom.svg.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
 
Constructor Summary
SVGOMAnimatedPreserveAspectRatio(AbstractElement elt)
          Creates a new SVGOMAnimatedPreserveAspectRatio.
 
Method Summary
 void attrAdded(Attr node, String newv)
          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.
 SVGPreserveAspectRatio getAnimVal()
          DOM: Implements SVGAnimatedPreserveAspectRatio#getAnimVal().
 SVGPreserveAspectRatio getBaseVal()
          DOM: Implements SVGAnimatedPreserveAspectRatio#getBaseVal().
 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.
 
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGAnimatedValue
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 SVGPreserveAspectRatio getBaseVal()
DOM: Implements SVGAnimatedPreserveAspectRatio#getBaseVal().


getAnimVal

public SVGPreserveAspectRatio getAnimVal()
DOM: Implements SVGAnimatedPreserveAspectRatio#getAnimVal().


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 an AnimatableValue.


updateAnimatedValue

protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the given AnimatableValue.

Specified by:
updateAnimatedValue in class AbstractSVGAnimatedValue

attrAdded

public void attrAdded(Attr node,
                      String newv)
Called when an Attr node has been added.


attrModified

public void attrModified(Attr node,
                         String oldv,
                         String newv)
Called when an Attr node has been modified.


attrRemoved

public void attrRemoved(Attr node,
                        String oldv)
Called when an Attr node has been removed.



Copyright ? 2008 Apache Software Foundation. All Rights Reserved.