|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbluegammon.gui.animation.Animation
This abstract class represents an animation and is
handled by the AnimationEngine
Constructor Summary | |
Animation()
|
Method Summary | |
void |
callNext(long t)
Called from animation engine |
abstract long |
getInterval()
Returns interval time in milliseconds when the animation should be updated, i.e. the next method is invoked. |
long |
getLastInvoke()
Returns last update in milliseconds |
abstract boolean |
isFinished()
Probes to check if the animation can be removed |
abstract void |
next()
Called each time the animation should be updated. |
void |
onExit()
Override this to invoke functionality at the end of this animation |
void |
onStart()
Override this to invoke functionality at the start of this animation |
abstract void |
paint(javax.microedition.lcdui.Graphics g)
Draws the animation using the specified graphics context. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Animation()
Method Detail |
public void onStart()
public abstract void paint(javax.microedition.lcdui.Graphics g)
g
- The graphics context.public abstract void next()
public abstract boolean isFinished()
public abstract long getInterval()
next
method is invoked.
public void callNext(long t)
t
- Current timepublic long getLastInvoke()
public void onExit()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |