|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brackeen.javagamebook.graphics.Animation
The Animation class manages a series of images (frames) and the amount of time to display each frame.
Constructor Summary | |
Animation()
Creates a new, empty Animation. |
Method Summary | |
void |
addFrame(java.awt.Image image,
long duration)
Adds an image to the animation with the specified duration (time to display the image). |
java.lang.Object |
clone()
Creates a duplicate of this animation. |
java.awt.Image |
getImage()
Gets this Animation's current image. |
void |
start()
Starts this animation over from the beginning. |
void |
update(long elapsedTime)
Updates this animation's current image (frame), if neccesary. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Animation()
Method Detail |
public java.lang.Object clone()
public void addFrame(java.awt.Image image, long duration)
public void start()
public void update(long elapsedTime)
public java.awt.Image getImage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |