com.depthexplorer.animation
Class XMLAnimator
java.lang.Object
com.depthexplorer.animation.XMLAnimator
public class XMLAnimator
- extends Object
Class handles animating an XML file.
- Author:
- Ashish Datta
XMLAnimator
XMLAnimator(String interpolateClass,
String drawingXML,
String animationXML)
- Parameters:
interpolateClass
- Fully qualified class name used to interpolate XML attributes.drawingXML
- Filename for the render XMLanimationXML
- Filename for the animation XML
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()