public final class WakeupOnAWTEvent extends WakeupCriterion
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
AwtId |
(package private) static int |
COND_IN_BS_LIST |
(package private) long |
enableAWTEventTS |
(package private) long |
EventMask |
(package private) java.util.Vector |
events |
(package private) static int |
TOTAL_INDEXED_UNORDER_SET_TYPES |
triggeredALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS| Constructor and Description |
|---|
WakeupOnAWTEvent(int AWTId)
Constructs a new WakeupOnAWTEvent object that informs the Java 3D
scheduler to wake up the specified Behavior object whenever the
specified AWT event occurs.
|
WakeupOnAWTEvent(long eventMask)
Constructs a new WakeupOnAWTEvent using Ored EVENT_MASK values.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addAWTEvent(java.awt.AWTEvent event)
Sets the AWT event that will cause a behavior wakeup.
|
(package private) void |
addBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure.
|
java.awt.AWTEvent[] |
getAWTEvent()
Retrieves the array of consecutive AWT event that triggered this wakeup.
|
(package private) void |
removeBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure.
|
(package private) void |
resetBehaviorCondition(BehaviorStructure bs)
Perform task in addBehaviorCondition() that has to be
set every time the condition met.
|
buildTree, cleanTree, hasTriggered, resetTree, setTriggeredallElements, reInsertElapseTimeCond, setConditionMet, triggeredElementsstatic final int COND_IN_BS_LIST
static final int TOTAL_INDEXED_UNORDER_SET_TYPES
int AwtId
long EventMask
long enableAWTEventTS
java.util.Vector events
public WakeupOnAWTEvent(int AWTId)
AWTId - the AWT ids that this behavior wishes to interceptpublic WakeupOnAWTEvent(long eventMask)
eventMask - the AWT EVENT_MASK values Ored togetherpublic java.awt.AWTEvent[] getAWTEvent()
void addAWTEvent(java.awt.AWTEvent event)
event - The event causing this wakeupvoid addBehaviorCondition(BehaviorStructure bs)
addBehaviorCondition in class WakeupCriterionvoid removeBehaviorCondition(BehaviorStructure bs)
removeBehaviorCondition in class WakeupCriterionvoid resetBehaviorCondition(BehaviorStructure bs)
resetBehaviorCondition in class WakeupCriterionCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.