com.jgoodies.animation
Class AnimationEvent

java.lang.Object
  extended by com.jgoodies.animation.AnimationEvent

public final class AnimationEvent
extends Object

Describes events appropriate for animations: started or stopped.

Version:
$Revision: 1.1 $
Author:
Karsten Lentzsch
See Also:
AnimationListener

Field Summary
static com.jgoodies.animation.AnimationEvent.Type STARTED
          The animation event type for an animation that has been started.
static com.jgoodies.animation.AnimationEvent.Type STOPPED
          The animation event type for an animation that has been stopped.
 
Method Summary
 Animation getSource()
          Returns the animation the has originated this event.
 long time()
          Returns the time when this event has been created.
 String toString()
          Returns an appropriate string representation.
 com.jgoodies.animation.AnimationEvent.Type type()
          Returns the event type: started or stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STARTED

public static final com.jgoodies.animation.AnimationEvent.Type STARTED
The animation event type for an animation that has been started.


STOPPED

public static final com.jgoodies.animation.AnimationEvent.Type STOPPED
The animation event type for an animation that has been stopped.

Method Detail

getSource

public Animation getSource()
Returns the animation the has originated this event.

Returns:
the animation that has originated this event

type

public com.jgoodies.animation.AnimationEvent.Type type()
Returns the event type: started or stopped.

Returns:
the event type: started or stopped

time

public long time()
Returns the time when this event has been created.

Returns:
the event creation time

toString

public String toString()
Returns an appropriate string representation.

Overrides:
toString in class Object
Returns:
a string representation for this event


Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.