com.depthexplorer.animation
Class XMLAnimator

java.lang.Object
  extended by com.depthexplorer.animation.XMLAnimator

public class XMLAnimator
extends Object

Class handles animating an XML file.

Author:
Ashish Datta

Constructor Summary
XMLAnimator(String interpolateClass, String drawingXML, String animationXML)
           
 
Method Summary
 void animate()
          Progresses the animation forward by one frame.
 String currentXML()
           
 int frameCount()
           
 String getDiffXML()
           
 boolean hasFrames()
           
 void setDefaults()
          Sets some safe defaults for animation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLAnimator

XMLAnimator(String interpolateClass,
            String drawingXML,
            String animationXML)
Parameters:
interpolateClass - Fully qualified class name used to interpolate XML attributes.
drawingXML - Filename for the render XML
animationXML - Filename for the animation XML
Method Detail

animate

public void animate()
Progresses the animation forward by one frame.


currentXML

public String currentXML()
Returns:
The XML of the current frame.

hasFrames

public boolean hasFrames()
Returns:
Boolean if there are more frames left to animate.

frameCount

public int frameCount()
Returns:
Total number of frames to animate.

setDefaults

public void setDefaults()
Sets some safe defaults for animation.


toString

public String toString()
Overrides:
toString in class Object

getDiffXML

public String getDiffXML()