Package org.xj3d.ui.awt.device
Class AWTKeySensorDevice
java.lang.Object
org.xj3d.ui.awt.device.AWTKeySensorDevice
- All Implemented Interfaces:
KeyListener
,EventListener
,KeySensorDevice
Implementation of a KeySensorDevice to gather and adapt the key events
for an AWT specific rendering component.
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getEvents
(KeySequence seq) Return the ordered set of key events in the argument KeySequence object that have occurred since the previous call to this method.void
keyPressed
(KeyEvent evt) Process a key press event.void
keyReleased
(KeyEvent evt) Process a key release event.void
Process a key typed event.
-
Constructor Details
-
AWTKeySensorDevice
public AWTKeySensorDevice()Constructor
-
-
Method Details
-
getEvents
Return the ordered set of key events in the argument KeySequence object that have occurred since the previous call to this method.- Specified by:
getEvents
in interfaceKeySensorDevice
- Parameters:
seq
- - The KeySequence object to initialize with the set of key events
-
keyPressed
Process a key press event.- Specified by:
keyPressed
in interfaceKeyListener
- Parameters:
evt
- The event that caused this method to be called
-
keyReleased
Process a key release event.- Specified by:
keyReleased
in interfaceKeyListener
- Parameters:
evt
- The event that caused this method to be called
-
keyTyped
Process a key typed event.- Specified by:
keyTyped
in interfaceKeyListener
- Parameters:
evt
- The event that caused this method to be called
-