|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanimation.Animation
public class Animation
This class represents an animation
Constructor Summary | |
---|---|
Animation(java.awt.image.BufferedImage[] images,
java.lang.String name)
Creates a new animation with infinite duration. |
|
Animation(java.awt.image.BufferedImage[] images,
java.lang.String name,
long dur)
Creates a new animation |
Method Summary | |
---|---|
long |
getDuration()
Returns the duration (in miliseconds) of the animation. |
java.awt.image.BufferedImage[] |
getImages()
Returns the image sequence that forms the animation |
java.lang.String |
getName()
Returns the reference name that has been specified for the animation |
boolean |
isInfinite()
Determines whether the animation has infinite duration or not. |
boolean |
isRunning()
Determines whether this animation is currently running |
void |
setRunning(boolean running)
Sets if the animation is currently running. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Animation(java.awt.image.BufferedImage[] images, java.lang.String name, long dur)
images
- animation imagesname
- animation reference namedur
- duration of the animationpublic Animation(java.awt.image.BufferedImage[] images, java.lang.String name)
images
- animation imagesname
- animation reference nameMethod Detail |
---|
public java.awt.image.BufferedImage[] getImages()
public long getDuration()
public boolean isInfinite()
public boolean isRunning()
public void setRunning(boolean running)
running
- is running? --> true=yes, false=nopublic java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |