Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

pkgView.Keyboard Class Reference

Collaboration diagram for pkgView.Keyboard:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 15 of file Keyboard.java.

Public Member Functions

int inputKey (int timeout)
void setKey (int setting)
int getLastKey ()
boolean isBackSpace (int k)
boolean isLeftArrow (int k)
boolean isRightArrow (int k)
boolean isCtrl (int k)
boolean isDigit (int k)
boolean isLower (int k)
boolean isUpper (int k)
boolean isAlpha (int k)

Static Public Member Functions

static Keyboard getSingleton ()

Static Public Attributes

static final int KEY_F12 = 276
 F12.
static final int KEY_F11 = 275
 F11.
static final int KEY_F10 = 274
 F10.
static final int KEY_F9 = 273
 F9.
static final int KEY_F8 = 272
 F8.
static final int KEY_F7 = 271
 F7.
static final int KEY_F6 = 270
 F6.
static final int KEY_F5 = 269
 F5.
static final int KEY_F4 = 268
 F4.
static final int KEY_F3 = 267
 F3.
static final int KEY_F2 = 266
 F2.
static final int KEY_F1 = 265
 F1.
static final int KEY_TAB = 9
 TAB.
static final int KEY_ESC = 27
 ESC.
static final int KEY_ENTER = 13
 ENTER.
static final int KEY_NEWMODE = 0
 an update signal
static final int KEY_HOME = 262
 HOME.
static final int KEY_DOWN = 258
 down arrow
static final int KEY_UP = 259
 up arrow
static final int KEY_RIGHT = 261
 right arrow
static final int KEY_LEFT = 260
 left arrow
static final int KEY_PGDN = 338
 page down
static final int KEY_PGUP = 339
 page up
static final int KEY_INSERT = 331
 insert
static final int KEY_DELETE = 330
 delete
static final int KEY_SPACE = 32
 white space
static final int KEY_CTRL_A = 1
static final int KEY_CTRL_B = 2
static final int KEY_CTRL_C = 3
static final int KEY_CTRL_D = 4
static final int KEY_CTRL_E = 5
static final int KEY_CTRL_F = 6
static final int KEY_CTRL_G = 7
static final int KEY_CTRL_H = 8
static final int KEY_CTRL_I = 9
static final int KEY_CTRL_J = 10
static final int KEY_CTRL_K = 11
static final int KEY_CTRL_L = 12
static final int KEY_CTRL_M = 13
static final int KEY_CTRL_N = 14
static final int KEY_CTRL_O = 15
static final int KEY_CTRL_P = 16
static final int KEY_CTRL_Q = 17
static final int KEY_CTRL_R = 18
static final int KEY_CTRL_S = 19
static final int KEY_CTRL_T = 20
static final int KEY_CTRL_U = 21
static final int KEY_CTRL_V = 22
static final int KEY_CTRL_W = 23
static final int KEY_CTRL_X = 24
static final int KEY_CTRL_Y = 25
static final int KEY_CTRL_Z = 26


Member Function Documentation

static Keyboard pkgView.Keyboard.getSingleton  )  [static]
 

creates only one instance of this class

Returns:
a reference to the one object

Definition at line 35 of file Keyboard.java.

Referenced by pkgMcj.Mcj.Mcj().

boolean pkgView.Keyboard.isBackSpace int  k  ) 
 

Returns:
true if backspace

Definition at line 129 of file Keyboard.java.

boolean pkgView.Keyboard.isLeftArrow int  k  ) 
 

Returns:
true if left arrow

Definition at line 140 of file Keyboard.java.

boolean pkgView.Keyboard.isRightArrow int  k  ) 
 

Returns:
true if right arrow

Definition at line 151 of file Keyboard.java.

boolean pkgView.Keyboard.isCtrl int  k  ) 
 

Returns:
true if control key

Definition at line 162 of file Keyboard.java.

boolean pkgView.Keyboard.isDigit int  k  ) 
 

tests key digit

Definition at line 173 of file Keyboard.java.

boolean pkgView.Keyboard.isLower int  k  ) 
 

tests key

Definition at line 184 of file Keyboard.java.

Referenced by pkgView.Keyboard.isAlpha().

boolean pkgView.Keyboard.isUpper int  k  ) 
 

tests key

Definition at line 195 of file Keyboard.java.

Referenced by pkgView.Keyboard.isAlpha().


The documentation for this class was generated from the following file:
SourceForge.net Logo