Class WakeupOnAWTEvent


  • public final class WakeupOnAWTEvent
    extends WakeupCriterion
    Class that specifies a Behavior wakeup when a specific AWT event occurs.
    • Constructor Summary

      Constructors 
      Constructor 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.
    • Constructor Detail

      • WakeupOnAWTEvent

        public 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.
        Parameters:
        AWTId - the AWT ids that this behavior wishes to intercept
      • WakeupOnAWTEvent

        public WakeupOnAWTEvent​(long eventMask)
        Constructs a new WakeupOnAWTEvent using Ored EVENT_MASK values.
        Parameters:
        eventMask - the AWT EVENT_MASK values Ored together
    • Method Detail

      • getAWTEvent

        public java.awt.AWTEvent[] getAWTEvent()
        Retrieves the array of consecutive AWT event that triggered this wakeup. A value of null implies that this event was not the trigger for the behavior wakeup.
        Returns:
        either null (if not resposible for wakeup) or the array of AWTEvents responsible for the wakeup.