Constructor and Description |
---|
MultipleFramesAnimation(List<Image> frames)
Create a new multiple frames animation with the specified list of frames.
|
Modifier and Type | Method and Description |
---|---|
boolean |
advance()
Advance this animation one frame.
|
Image |
getCurrentFrame()
Return the current frame for this animation.
|
void |
reset()
Reset this multiple frames animation.
|
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 frameIllegalArgumentException
- if frames.size() < 1
public void reset()
public boolean advance()
Animation
public Image getCurrentFrame()
Animation
getCurrentFrame
in interface Animation
Copyright (c) 2006-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).