com.depthexplorer.animation
Class XMLinterpolator

java.lang.Object
  extended by com.depthexplorer.animation.XMLinterpolator
Direct Known Subclasses:
DEJInterpolator, SVGInterpolate

public abstract class XMLinterpolator
extends Object


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

Constructor Detail

XMLinterpolator

public XMLinterpolator()
Method Detail

interpolateItem

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

Parameters:
tagName - Name of the tag.
attrName - Name of the attribute.
valueStart - Starting value.
valueEnd - Ending value.
fraction - Fraction of the animation to perform.
Returns:
The new value of the attribute.

afterAnimate

public abstract boolean afterAnimate(String result,
                                     int imageCount)
This function will be called after a single frame has been animated.

Parameters:
result - The current XML of the animator.
Returns:
True on success. False on error.