com.jgoodies.animation

Class AnimationEvent


public final class AnimationEvent
extends java.lang.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.

Field Details

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 Details

getSource

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

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.
Returns:
a string representation for this event

type

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

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