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 TypeMethodDescriptionvoidgetEvents(KeySequence seq) Return the ordered set of key events in the argument KeySequence object that have occurred since the previous call to this method.voidkeyPressed(KeyEvent evt) Process a key press event.voidkeyReleased(KeyEvent evt) Process a key release event.voidProcess 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:
getEventsin interfaceKeySensorDevice- Parameters:
seq- - The KeySequence object to initialize with the set of key events
-
keyPressed
Process a key press event.- Specified by:
keyPressedin interfaceKeyListener- Parameters:
evt- The event that caused this method to be called
-
keyReleased
Process a key release event.- Specified by:
keyReleasedin interfaceKeyListener- Parameters:
evt- The event that caused this method to be called
-
keyTyped
Process a key typed event.- Specified by:
keyTypedin interfaceKeyListener- Parameters:
evt- The event that caused this method to be called
-