|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dishevelled.piccolo.sprite.MultipleFramesAnimation
public final class MultipleFramesAnimation
Multiple frames animation.
| Constructor Summary | |
|---|---|
MultipleFramesAnimation(List<Image> frames)
Create a new multiple frames animation with the specified list of frames. |
|
| Method Summary | |
|---|---|
boolean |
advance()
Advance this animation one frame. |
Image |
getCurrentFrame()
Return the current frame for this animation. |
void |
reset()
Reset this multiple frames animation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipleFramesAnimation(List<Image> frames)
The specified list of frames must contain at least one frame.
The frames in frames are copied defensively into this class.
frames - list of frames, must not be null and must
contain at least one frame
IllegalArgumentException - if frames.size() < 1| Method Detail |
|---|
public void reset()
public boolean advance()
advance in interface Animationpublic Image getCurrentFrame()
getCurrentFrame in interface Animation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||