com.depthexplorer.animation
Class DEJInterpolator

java.lang.Object
  extended by com.depthexplorer.animation.XMLinterpolator
      extended by com.depthexplorer.animation.DEJInterpolator

public class DEJInterpolator
extends XMLinterpolator

Extends the XMLinterpolator class to interpolate DEJ elements.

Author:
Ashish Datta

Constructor Summary
DEJInterpolator()
           
 
Method Summary
 boolean afterAnimate(String result, int imageCount)
          This function will be called after a single frame has been animated.
 String interpolateItem(String tagName, String attrName, String valueStart, String valueEnd, double fraction)
          Interpolates an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEJInterpolator

public DEJInterpolator()
Method Detail

interpolateItem

public String interpolateItem(String tagName,
                              String attrName,
                              String valueStart,
                              String valueEnd,
                              double fraction)
Interpolates an element.

Specified by:
interpolateItem in class XMLinterpolator
Parameters:
tagName - The name of the tag to interpolate.
attrName - The attribute of the tag.
valueStart - The initial value of the attribute.
valueEnd - The final value.
fraction - The fraction of the interpolation to perform.
Returns:
The new value of the attribute.

afterAnimate

public boolean afterAnimate(String result,
                            int imageCount)
Description copied from class: XMLinterpolator
This function will be called after a single frame has been animated.

Specified by:
afterAnimate in class XMLinterpolator
Parameters:
result - The current XML of the animator.
Returns:
True on success. False on error.