|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--java.awt.AWTEvent | +--AnimationEvent
A semantic event which indicates that an Animation-defined action occured.
This high-level event is generated by an Animation Object when
an action occurs (such as a change in progress).
The event is passed to every AnimationListener
object
that registered to receive such events using the Animation's
addAnimationListener
method.
The object that implements the AnimationListener
interface
gets this AnimationEvent
when the event occurs. The listener
is therefore spared the details of processing individual selection, and can
instead process a "meaningful" (semantic) event.
AnimationListener
,
Animation
,
Serialized FormField Summary | |
static int |
ABSTRACT_ANIMATION
ID for the AbstractAnimation event. |
static int |
BALANCE_BST_ANIMATION
ID for the BalanceBSTAnimation event. |
static int |
DELETE_BST_ANIMATION
ID for the DeleteBSTAnimation event. |
static int |
DELETE_RED_BLACK_ANIMATION
ID for the DeleteRedBlackAnimation event. |
static int |
DISPLAY_CHANGE_ANIMATION
ID for the DisplayChangeAnimation event. |
static int |
INSERT_BST_ANIMATION
ID for the InsertBSTAnimation event. |
static int |
INSERT_RED_BLACK_ANIMATION
ID for the InsertRedBlackAnimation event. |
static int |
MOVING_NODES_ANIMATION
ID for the MovingBSTAnimation event. |
static int |
PARTITION_BST_ANIMATION
ID for the PartitionBSTAnimation event. |
static int |
ROTATION_BST_ANIMATION
ID for the RotateBSTAnimation event. |
static int |
ROTATION_DOUBLE_BST_ANIMATION
ID for the RotateDoubleBSTAnimation event. |
static int |
SEARCH_BST_ANIMATION
ID for the SearchBSTAnimation event. |
static int |
SELECTION_BST_ANIMATION
ID for the SelectionBSTAnimation event. |
static int |
TRAVERSE_BST_ANIMATION
ID for the TraverseBSTAnimation event. |
Fields inherited from class java.awt.AWTEvent |
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
AnimationEvent(java.lang.Object source,
int id)
Constructs an AnimationEvent object. |
|
AnimationEvent(java.lang.Object source,
int id,
double progress)
Constructs an AnimationEvent object. |
|
AnimationEvent(java.lang.Object source,
int id,
java.lang.String status)
Constructs an AnimationEvent object. |
|
AnimationEvent(java.lang.Object source,
int id,
java.lang.String status,
double progress)
Constructs an AnimationEvent object with the command and progress. |
|
AnimationEvent(java.lang.Object source,
int id,
java.lang.String status,
java.lang.String animationDescription)
Constructs an AnimationEvent object. |
|
AnimationEvent(java.lang.Object source,
int id,
java.lang.String status,
java.lang.String animationDescription,
double progress)
Constructs an AnimationEvent object with the command and progress. |
Method Summary | |
java.lang.String |
getAnimationDescription()
Returns the description String associated with this AnimationEvent. |
double |
getProgress()
Returns the double progress associated with this AnimationEvent. |
java.lang.String |
getStatus()
Returns the status String associated with this AnimationEvent. |
Methods inherited from class java.awt.AWTEvent |
consume, getID, isConsumed, paramString, setSource, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ABSTRACT_ANIMATION
public static final int INSERT_BST_ANIMATION
public static final int INSERT_RED_BLACK_ANIMATION
public static final int DELETE_BST_ANIMATION
public static final int DELETE_RED_BLACK_ANIMATION
public static final int ROTATION_BST_ANIMATION
public static final int ROTATION_DOUBLE_BST_ANIMATION
public static final int MOVING_NODES_ANIMATION
public static final int SEARCH_BST_ANIMATION
public static final int SELECTION_BST_ANIMATION
public static final int PARTITION_BST_ANIMATION
public static final int BALANCE_BST_ANIMATION
public static final int TRAVERSE_BST_ANIMATION
public static final int DISPLAY_CHANGE_ANIMATION
Constructor Detail |
public AnimationEvent(java.lang.Object source, int id)
AnimationEvent
object.
source
- the object that originated the eventid
- an integer that identifies the eventpublic AnimationEvent(java.lang.Object source, int id, double progress)
AnimationEvent
object.
source
- the object that originated the eventid
- an integer that identifies the eventprogress
- double to indicate the progress that the animation starts on.public AnimationEvent(java.lang.Object source, int id, java.lang.String status)
AnimationEvent
object.
source
- the object that originated the eventid
- an integer that identifies the eventstatus
- a string describing the status of teh current AnimationEvent.public AnimationEvent(java.lang.Object source, int id, java.lang.String status, java.lang.String animationDescription)
AnimationEvent
object.
source
- the object that originated the eventid
- an integer that identifies the eventstatus
- a string describing the status of teh current AnimationEvent.animationDescription
- a string that may specify a description (possibly one
of several) associated with the eventpublic AnimationEvent(java.lang.Object source, int id, java.lang.String status, double progress)
AnimationEvent
object with the command and progress.
source
- the object that originated the eventid
- an integer that identifies the eventstatus
- a string describing the status of teh current AnimationEvent.progress
- double to indicate the progress that the animation starts on.public AnimationEvent(java.lang.Object source, int id, java.lang.String status, java.lang.String animationDescription, double progress)
AnimationEvent
object with the command and progress.
source
- the object that originated the eventid
- an integer that identifies the eventstatus
- a string describing the status of teh current AnimationEvent.animationDescription
- a string that may specify a description (possibly one
of several) associated with the eventprogress
- double to indicate the progress that the animation starts on.Method Detail |
public java.lang.String getAnimationDescription()
public java.lang.String getStatus()
public double getProgress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |