com.depthexplorer.animation
Class AnimationElement

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

public class AnimationElement
extends Object

The AnimationElement class represents a single XML element. The transform() method advances the interpolation of this element one frame forward.

Author:
Ashish Datta

Constructor Summary
AnimationElement()
           
 
Method Summary
 String getId()
           
 String getXmlChanges()
          Retrieves the modified XML tags
 void load(Node xmlNode)
          Loads the animation XML node.
 void setNode(Node n)
          Links in a DOM node.
 void setParams(int framecount, int fps, String interpolateClass)
          Sets up some animation variables.
 String toString()
           
 void transform()
          Causes the object to animate one frame forward.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnimationElement

public AnimationElement()
Method Detail

transform

public void transform()
Causes the object to animate one frame forward.


getId

public String getId()

setNode

public void setNode(Node n)
Links in a DOM node.

Parameters:
n - DOM node to link.

setParams

public void setParams(int framecount,
                      int fps,
                      String interpolateClass)
Sets up some animation variables.

Parameters:
framecount - Number of frames in the animation.
fps - Frames per second.
interpolateClass - The class to use to interpolate the attributes.

load

public void load(Node xmlNode)
Loads the animation XML node.

Parameters:
xmlNode - XML DOM node.

toString

public String toString()
Overrides:
toString in class Object

getXmlChanges

public String getXmlChanges()
Retrieves the modified XML tags

Returns:
Returns modified XML tag.