com.jgoodies.animation
Class AnimationEvent

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

public final class AnimationEvent
extends Object

An immutable object that describes events appropriate for animations with the source animation, the type (started, stopped), and the time the event has happened.

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

Nested Class Summary
static class AnimationEvent.Type
          Enumerates the animation event types: started and stopped.
 
Method Summary
 Animation getSource()
          Returns the animation the has originated this event.
 long time()
          Returns the time when this event has happened in the time interval of this event's source animation.
 String toString()
          Returns an appropriate string representation.
 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
 

Method Detail

getSource

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

Returns:
the animation that has originated this event

type

public 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 happened in the time interval of this event's source animation. This time may differ from the time the event has been created.

Returns:
the time the event has happened

toString

public String toString()
Returns an appropriate string representation.

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


Copyright © 2001-2013 JGoodies Software GmbH. All Rights Reserved.