Aviatrix3D
2.1.0

org.j3d.renderer.aviatrix3d.device.input.keyboard
Class KeyboardManager

java.lang.Object
  extended by org.j3d.renderer.aviatrix3d.device.input.keyboard.KeyboardManager
All Implemented Interfaces:
org.j3d.device.input.DeviceManager

public class KeyboardManager
extends java.lang.Object
implements org.j3d.device.input.DeviceManager

Manages Keyboard devices. Assumes only 1 device currently.

Version:
$Revision: 1.1 $
Author:
Alan Hudson

Constructor Summary
KeyboardManager()
           
 
Method Summary
 void addDeviceListener(org.j3d.device.input.DeviceListener l)
          Add a listener for devices additions and removals.
 org.j3d.device.input.InputDevice[] getDevices()
          Get the device discovered by this manager.
 int getNumDevices()
          Get the number of devices discovered.
 void removeDeviceListener(org.j3d.device.input.DeviceListener l)
          Remove a listener for device additions and removals.
 void setErrorReporter(org.j3d.util.ErrorReporter reporter)
          Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyboardManager

public KeyboardManager()
Method Detail

setErrorReporter

public void setErrorReporter(org.j3d.util.ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. Setting a value of null will clear the currently set reporter. If one is already set, the new value replaces the old.

Specified by:
setErrorReporter in interface org.j3d.device.input.DeviceManager
Parameters:
reporter - The instance to use or null

getNumDevices

public int getNumDevices()
Get the number of devices discovered.

Specified by:
getNumDevices in interface org.j3d.device.input.DeviceManager
Returns:
The number of devices.

getDevices

public org.j3d.device.input.InputDevice[] getDevices()
Get the device discovered by this manager. All devices discovered after this call will be reported to DeviceListeners.

Specified by:
getDevices in interface org.j3d.device.input.DeviceManager
Returns:
InputDevice[] An array of discovered devices.

addDeviceListener

public void addDeviceListener(org.j3d.device.input.DeviceListener l)
Add a listener for devices additions and removals.

Specified by:
addDeviceListener in interface org.j3d.device.input.DeviceManager
Parameters:
l - The listener. Nulls and duplicates will be ignored.

removeDeviceListener

public void removeDeviceListener(org.j3d.device.input.DeviceListener l)
Remove a listener for device additions and removals.

Specified by:
removeDeviceListener in interface org.j3d.device.input.DeviceManager
Parameters:
l - The listener. Nulls and not found listeners will be ignored.

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org