| java.lang.Object com.jgoodies.animation.AnimationEvent
AnimationEvent | final public class AnimationEvent (Code) | | Describes events appropriate for animations: started or stopped.
author: Karsten Lentzsch version: $Revision: 1.1 $ See Also: AnimationListener |
Field Summary | |
final public static Type | STARTED The animation event type for an animation that has been started. | final public static Type | STOPPED The animation event type for an animation that has been stopped. |
Constructor Summary | |
| AnimationEvent(Animation source, Type type, long time) Constructs an AnimationEvent for the
initiating animation, event type, and time. |
Method Summary | |
public Animation | getSource() Returns the animation the has originated this event. | public long | time() Returns the time when this event has been created. | public String | toString() Returns an appropriate string representation. | public Type | type() Returns the event type: started or stopped. |
STARTED | final public static Type STARTED(Code) | | The animation event type for an animation that has been started.
|
STOPPED | final public static Type STOPPED(Code) | | The animation event type for an animation that has been stopped.
|
AnimationEvent | AnimationEvent(Animation source, Type type, long time)(Code) | | Constructs an AnimationEvent for the
initiating animation, event type, and time.
Parameters: source - the Animation that has originated the event Parameters: type - the event type: start or stop Parameters: time - the time the event has happened, which is likely before the event has been created |
getSource | public Animation getSource()(Code) | | Returns the animation the has originated this event.
the animation that has originated this event |
time | public long time()(Code) | | Returns the time when this event has been created.
the event creation time |
toString | public String toString()(Code) | | Returns an appropriate string representation.
a string representation for this event |
type | public Type type()(Code) | | Returns the event type: started or stopped.
the event type: started or stopped |
|
|