com.depthexplorer.animation
Class XMLinterpolator
java.lang.Object
com.depthexplorer.animation.XMLinterpolator
- Direct Known Subclasses:
- DEJInterpolator, SVGInterpolate
public abstract class XMLinterpolator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLinterpolator
public XMLinterpolator()
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.