Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.swt.device
Class SWTKeySensorDevice

java.lang.Object
  extended by org.xj3d.ui.swt.device.SWTKeySensorDevice
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener, KeySensorDevice

public class SWTKeySensorDevice
extends java.lang.Object
implements KeySensorDevice, org.eclipse.swt.events.KeyListener

Implementation of a KeySensorDevice to gather and adapt the key events for an SWT specific rendering component.

Version:
$Revision: 1.1 $
Author:
Rex Melton

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

Constructor Detail

SWTKeySensorDevice

public SWTKeySensorDevice()
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(org.eclipse.swt.events.KeyEvent evt)
Process a key press event.

Specified by:
keyPressed in interface org.eclipse.swt.events.KeyListener
Parameters:
evt - The event that caused this method to be called

keyReleased

public void keyReleased(org.eclipse.swt.events.KeyEvent evt)
Process a key release event.

Specified by:
keyReleased in interface org.eclipse.swt.events.KeyListener
Parameters:
evt - The event that caused this method to be called

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium