Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.awt.device
Class AWTKeySensorDevice

java.lang.Object
  extended by org.xj3d.ui.awt.device.AWTKeySensorDevice
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener, KeySensorDevice

public class AWTKeySensorDevice
extends java.lang.Object
implements KeySensorDevice, java.awt.event.KeyListener

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
AWTKeySensorDevice()
          Constructor
 
Method Summary
 void 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(java.awt.event.KeyEvent evt)
          Process a key press event.
 void keyReleased(java.awt.event.KeyEvent evt)
          Process a key release event.
 void keyTyped(java.awt.event.KeyEvent evt)
          Process a key typed event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTKeySensorDevice

public AWTKeySensorDevice()
Constructor

Method Detail

getEvents

public void 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.

Specified by:
getEvents in interface KeySensorDevice
Parameters:
seq - - The KeySequence object to initialize with the set of key events

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)
Process a key press event.

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
evt - The event that caused this method to be called

keyReleased

public void keyReleased(java.awt.event.KeyEvent evt)
Process a key release event.

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
evt - The event that caused this method to be called

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Process a key typed event.

Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
evt - The event that caused this method to be called

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium