Package totalcross.game
Class AnimationEvent
- java.lang.Object
-
- totalcross.ui.event.Event<AnimationHandler>
-
- totalcross.game.AnimationEvent
-
public class AnimationEvent extends Event<AnimationHandler>
Events posted by an animation control.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class totalcross.ui.event.Event
Event.Type<H>
-
-
Constructor Summary
Constructors Constructor Description AnimationEvent(int type, java.lang.Object target)Constructs a new animation event, setting the type and target to the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(AnimationHandler listener)-
Methods inherited from class totalcross.ui.event.Event
clearQueue, getNextAvailableEventId, isAvailable, toString, touch
-
-
-
-
Field Detail
-
LOOP
public static final int LOOP
The event type when the animation loops.- See Also:
- Constant Field Values
-
FRAME
public static final int FRAME
The event type when a new frame is displayed.- See Also:
- Constant Field Values
-
FINISH
public static final int FINISH
The event type when the animation ends.- See Also:
- Constant Field Values
-
-
Method Detail
-
dispatch
public void dispatch(AnimationHandler listener)
- Specified by:
dispatchin classEvent<AnimationHandler>
-
-