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 frame)
Creates a new Animation with the specified Animatable object, duration 0,
as its only frame.
|
Animation(Animatable[] frames)
Creates a new Animation with the Animatable objects in the specified
array as its frames.
|
Animation(Animatable[] frames,
double[] frameDurations)
Creates a new Animation out of the Animatable objects in the specified
array of frames.
|