|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.WakeupCondition
javax.media.j3d.WakeupCriterion
javax.media.j3d.WakeupOnAWTEvent
public final class WakeupOnAWTEvent
Class that specifies a Behavior wakeup when a specific AWT event occurs.
Field Summary | |
---|---|
(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
|
Fields inherited from class javax.media.j3d.WakeupCriterion |
---|
triggered |
Fields inherited from class javax.media.j3d.WakeupCondition |
---|
ALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
(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. |
Methods inherited from class javax.media.j3d.WakeupCriterion |
---|
buildTree, cleanTree, hasTriggered, resetTree, setTriggered |
Methods inherited from class javax.media.j3d.WakeupCondition |
---|
allElements, reInsertElapseTimeCond, setConditionMet, triggeredElements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int COND_IN_BS_LIST
static final int TOTAL_INDEXED_UNORDER_SET_TYPES
int AwtId
long EventMask
long enableAWTEventTS
java.util.Vector events
Constructor Detail |
---|
public WakeupOnAWTEvent(int AWTId)
AWTId
- the AWT ids that this behavior wishes to interceptpublic WakeupOnAWTEvent(long eventMask)
eventMask
- the AWT EVENT_MASK values Ored togetherMethod Detail |
---|
public java.awt.AWTEvent[] getAWTEvent()
void addAWTEvent(java.awt.AWTEvent event)
event
- The event causing this wakeupvoid addBehaviorCondition(BehaviorStructure bs)
addBehaviorCondition
in class WakeupCriterion
void removeBehaviorCondition(BehaviorStructure bs)
removeBehaviorCondition
in class WakeupCriterion
void resetBehaviorCondition(BehaviorStructure bs)
resetBehaviorCondition
in class WakeupCriterion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |