|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Animation
public class Animation
A collection of frames that represent an entire animation.
Constructor Summary | |
---|---|
Animation()
|
Method Summary | |
---|---|
void |
add(int i)
Add a new (empty) frame at the specified position |
void |
add(int i,
AFrame f)
Add a specified frame at the specified position |
AFrame |
get(int i)
Gets the specified frame in this animation |
java.lang.String |
getName()
Gets the name of this animation |
void |
remove(int i)
Removes a frame. |
void |
set(AFrame f,
int i)
Sets the selected Frame |
void |
setName(java.lang.String s)
Sets the name of this animation |
int |
size()
Return size of this animation, in number of frames |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Animation()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String s)
s
- new namepublic AFrame get(int i)
i
- Index of frame you want
public void set(AFrame f, int i)
f
- the frame you want to place in this animationi
- Index of the frame you want to overridepublic void remove(int i)
i
- Index of frame you want to removepublic void add(int i)
i
- Index you want to place the new frame insize()
public void add(int i, AFrame f)
i
- Index for new framef
- data for new framepublic int size()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |