com.depthexplorer.animation
Class DEJInterpolator
java.lang.Object
com.depthexplorer.animation.XMLinterpolator
com.depthexplorer.animation.DEJInterpolator
public class DEJInterpolator
- extends XMLinterpolator
Extends the XMLinterpolator class to interpolate DEJ elements.
- Author:
- Ashish Datta
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEJInterpolator
public DEJInterpolator()
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.