public class AnimationEvent extends Event<AnimationHandler>
Event.Type<H>
Modifier and Type | Field and Description |
---|---|
static int |
FINISH
The event type when the animation ends.
|
static int |
FRAME
The event type when a new frame is displayed.
|
static int |
LOOP
The event type when the animation loops.
|
Constructor and Description |
---|
AnimationEvent(int type,
java.lang.Object target)
Constructs a new animation event, setting the type and target to the given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(AnimationHandler listener) |
clearQueue, getNextAvailableEventId, isAvailable, toString, touch
public static final int LOOP
public static final int FRAME
public static final int FINISH
public AnimationEvent(int type, java.lang.Object target)
type
- The event type.target
- The object which is the target of the event.public void dispatch(AnimationHandler listener)
dispatch
in class Event<AnimationHandler>