de.mud.terminal
Interface VDUInput

All Known Implementing Classes:
vt320

public interface VDUInput

An interface for a terminal that accepts input from keyboard and mouse.

Version:
$Id: VDUInput.java 499 2005-09-29 08:24:54Z leo $
Author:
Matthias L. Jugel, Marcus Mei???ner

Field Summary
static int KEY_ACTION
           
static int KEY_ALT
           
static int KEY_CONTROL
           
static int KEY_SHIFT
           
 
Method Summary
 void keyPressed(int keyCode, char keyChar, int modifiers)
          main keytyping event handler...
 void keyTyped(int keyCode, char keyChar, int modifiers)
          Handle key Typed events for the terminal, this will get all normal key types, but no shift/alt/control/numlock.
 void mousePressed(int x, int y, int modifiers)
          Terminal is mouse-aware and requires (x,y) coordinates of on the terminal (character coordinates) and the button clicked.
 void mouseReleased(int x, int y, int modifiers)
          Terminal is mouse-aware and requires the coordinates and button of the release.
 void setKeyCodes(java.util.Properties codes)
          Override the standard key codes used by the terminal emulation.
 void write(byte[] b)
          Direct access to writing data ...
 

Field Detail

KEY_CONTROL

static final int KEY_CONTROL
See Also:
Constant Field Values

KEY_SHIFT

static final int KEY_SHIFT
See Also:
Constant Field Values

KEY_ALT

static final int KEY_ALT
See Also:
Constant Field Values

KEY_ACTION

static final int KEY_ACTION
See Also:
Constant Field Values
Method Detail

write

void write(byte[] b)
Direct access to writing data ...

Parameters:
b -

mousePressed

void mousePressed(int x,
                  int y,
                  int modifiers)
Terminal is mouse-aware and requires (x,y) coordinates of on the terminal (character coordinates) and the button clicked.

Parameters:
x -
y -
modifiers -

mouseReleased

void mouseReleased(int x,
                   int y,
                   int modifiers)
Terminal is mouse-aware and requires the coordinates and button of the release.

Parameters:
x -
y -
modifiers -

setKeyCodes

void setKeyCodes(java.util.Properties codes)
Override the standard key codes used by the terminal emulation.

Parameters:
codes - a properties object containing key code definitions

keyPressed

void keyPressed(int keyCode,
                char keyChar,
                int modifiers)
main keytyping event handler...

Parameters:
keyCode - the key code
keyChar - the character represented by the key
modifiers - shift/alt/control modifiers

keyTyped

void keyTyped(int keyCode,
              char keyChar,
              int modifiers)
Handle key Typed events for the terminal, this will get all normal key types, but no shift/alt/control/numlock.

Parameters:
keyCode - the key code
keyChar - the character represented by the key
modifiers - shift/alt/control modifiers