Constructor and Description |
---|
LoopedFramesAnimation(List<Image> frames)
Create a new looped 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.
|
public LoopedFramesAnimation(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 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).