Package | Description |
---|---|
org.cell2d |
Modifier and Type | Class and Description |
---|---|
class |
Animation
An Animation is a sequence of one or more Animatable frames that
may be instantiated in an AnimationInstance in order to be displayed one
after another and/or smoothly transitioned between.
|
class |
Sprite
A Sprite is a static image that can be drawn to a Graphics context.
|
Modifier and Type | Method and Description |
---|---|
Animatable |
Animatable.getFrame(int index)
Returns this Animatable's frame at the specified index.
|
Animatable |
Animation.getFrame(int index) |
Animatable |
Sprite.getFrame(int index) |
Constructor and Description |
---|
Animation(Animatable... frames)
Constructs an Animation with the specified sequence of Animatable objects
as its frames.
|
Animation(Animatable frame)
Constructs an Animation with the specified Animatable object, duration 0,
as its only frame.
|
Animation(Animatable[] frames,
long... frameDurations)
Constructs an Animation out of the Animatable objects in the specified
array of frames.
|