public interface Animatable
An Animatable object is one that may be incorporated into an Animation as one of its frames. For simplicity's sake, all Animatable objects, not just Animations, may be treated as consisting of one or more Animatable frames, indexed by the integers from 0 to getNumFrames() - 1 inclusive, each with its own duration in fracunits. Durations of 0 or less are interpreted as infinite. An Animatable object that is not an Animation has exactly one frame, namely itself, with a duration of 0.
Animation
Modifier and Type | Method and Description |
---|---|
boolean |
framesAreCompatible(int index1,
int index2)
Returns whether the two frames at the specified indices are compatible
for AnimationInstances' transitioning purposes.
|
Animatable |
getFrame(int index)
Returns this Animatable's frame at the specified index.
|
long |
getFrameDuration(int index)
Returns the duration of the frame at the specified index.
|
int |
getLevel()
Returns how many levels of Animations this Animatable and its frames and
sub-frames comprise.
|
int |
getNumFrames()
Returns how many frames this Animatable has.
|
int getLevel()
int getNumFrames()
Animatable getFrame(int index)
index
- The index of the frame to be returnedlong getFrameDuration(int index)
index
- The index of the frame whose duration is to be returnedboolean framesAreCompatible(int index1, int index2)
index1
- The index of the first frameindex2
- The index of the second frame