public class DeviceKeyboard extends Object implements RawDevice, KeyListener, AWTEventListener, PollingDevice
Constructor and Description |
---|
DeviceKeyboard() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
eventDispatched(AWTEvent event) |
String |
getName() |
void |
initialize(Viewer viewer,
Map<String,Object> config)
Basically the actual constructor.
|
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
ToolEvent |
mapRawDevice(String rawDeviceName,
InputSlot inputDevice) |
void |
poll(long when)
Perform polling for the device in this method.
|
void |
setEventQueue(ToolEventQueue queue)
Here the ToolEventQueue that has a thread running is attached to the device.
|
String |
toString() |
public void initialize(Viewer viewer, Map<String,Object> config)
RawDevice
initialize
in interface RawDevice
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public ToolEvent mapRawDevice(String rawDeviceName, InputSlot inputDevice)
mapRawDevice
in interface RawDevice
public void setEventQueue(ToolEventQueue queue)
RawDevice
setEventQueue
in interface RawDevice
public void poll(long when)
PollingDevice
poll
in interface PollingDevice
public void eventDispatched(AWTEvent event)
eventDispatched
in interface AWTEventListener