public abstract class BaseTextAnimation extends java.lang.Object implements TextAnimation
TextAnimation
implementationsConstructor and Description |
---|
BaseTextAnimation() |
Modifier and Type | Method and Description |
---|---|
void |
addTextAnimationListener(TextAnimationListener listener)
Adds a
TextAnimationListener to this TextAnimation |
boolean |
isFinished()
Returns if the
TextAnimation has finished |
void |
removeTextAnimationListener(TextAnimationListener listener)
Removes a
TextAnimationListener from this TextAnimation |
void |
reset()
Resets the finished state to false
|
protected abstract void |
resetState() |
protected void |
setFinished(boolean finished)
Sets if this
TextAnimation has finished. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
interpolate, render, skip, update
protected abstract void resetState()
public boolean isFinished()
TextAnimation
TextAnimation
has finishedisFinished
in interface TextAnimation
public void reset()
reset
in interface TextAnimation
protected void setFinished(boolean finished)
TextAnimation
has finished. Will notify all
TextAnimationListener
s when true.finished
- True if finishedpublic void addTextAnimationListener(TextAnimationListener listener)
TextAnimation
TextAnimationListener
to this TextAnimation
addTextAnimationListener
in interface TextAnimation
listener
- The TextAnimationListener
to be addedpublic void removeTextAnimationListener(TextAnimationListener listener)
TextAnimation
TextAnimationListener
from this TextAnimation
removeTextAnimationListener
in interface TextAnimation
listener
- The TextAnimationListener
to be removed