org.jagatoo.input.devices.components
Enum KeyID

java.lang.Object
  extended by java.lang.Enum<KeyID>
      extended by org.jagatoo.input.devices.components.KeyID
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<KeyID>

public enum KeyID
extends java.lang.Enum<KeyID>

This class provides a static final access to the standard keys' key-IDs.


Enum Constant Summary
_0
           
_1
           
_2
           
_3
           
_4
           
_5
           
_6
           
_7
           
_8
           
_9
           
A
           
ALT
           
ALT_GRAPH
           
B
           
BACK_SPACE
           
C
           
CAPS_LOCK
           
CIRCUMFLEX
           
D
           
DELETE
           
DOWN
           
E
           
END
           
ENTER
           
ESCAPE
           
F
           
F1
           
F10
           
F11
           
F12
           
F2
           
F3
           
F4
           
F5
           
F6
           
F7
           
F8
           
F9
           
G
           
H
           
HOME
           
I
           
INSERT
           
J
           
K
           
L
           
LEFT
           
LEFT_CONTROL
           
LEFT_META
           
LEFT_SHIFT
           
LOCAL_KEY1
           
LOCAL_KEY10
           
LOCAL_KEY11
           
LOCAL_KEY2
           
LOCAL_KEY3
           
LOCAL_KEY4
           
LOCAL_KEY5
           
LOCAL_KEY6
           
LOCAL_KEY7
           
LOCAL_KEY8
           
LOCAL_KEY9
           
M
           
N
           
NUM_LOCK
           
NUMPAD_ADD
           
NUMPAD_DECIMAL
           
NUMPAD_DIVIDE
           
NUMPAD_ENTER
           
NUMPAD_MULTIPLY
           
NUMPAD_SUBTRACT
           
NUMPAD0
           
NUMPAD1
           
NUMPAD2
           
NUMPAD3
           
NUMPAD4
           
NUMPAD5
           
NUMPAD6
           
NUMPAD7
           
NUMPAD8
           
NUMPAD9
           
O
           
P
           
PAGE_DOWN
           
PAGE_UP
           
PAUSE
           
PRINTSCREEN
           
Q
           
R
           
RIGHT
           
RIGHT_CONTROL
           
RIGHT_META
           
RIGHT_SHIFT
           
S
           
SCROLL_LOCK
           
SPACE
           
T
           
TAB
           
U
           
UP
           
V
           
W
           
X
           
Y
           
Z
           
 
Method Summary
 Key getKey()
           
static KeyID valueOf(Key key)
           
static KeyID valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static KeyID[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ESCAPE

public static final KeyID ESCAPE

F1

public static final KeyID F1

F2

public static final KeyID F2

F3

public static final KeyID F3

F4

public static final KeyID F4

F5

public static final KeyID F5

F6

public static final KeyID F6

F7

public static final KeyID F7

F8

public static final KeyID F8

F9

public static final KeyID F9

F10

public static final KeyID F10

F11

public static final KeyID F11

F12

public static final KeyID F12

PRINTSCREEN

public static final KeyID PRINTSCREEN

PAUSE

public static final KeyID PAUSE

SCROLL_LOCK

public static final KeyID SCROLL_LOCK

CIRCUMFLEX

public static final KeyID CIRCUMFLEX

_0

public static final KeyID _0

_1

public static final KeyID _1

_2

public static final KeyID _2

_3

public static final KeyID _3

_4

public static final KeyID _4

_5

public static final KeyID _5

_6

public static final KeyID _6

_7

public static final KeyID _7

_8

public static final KeyID _8

_9

public static final KeyID _9

A

public static final KeyID A

B

public static final KeyID B

C

public static final KeyID C

D

public static final KeyID D

E

public static final KeyID E

F

public static final KeyID F

G

public static final KeyID G

H

public static final KeyID H

I

public static final KeyID I

J

public static final KeyID J

K

public static final KeyID K

L

public static final KeyID L

M

public static final KeyID M

N

public static final KeyID N

O

public static final KeyID O

P

public static final KeyID P

Q

public static final KeyID Q

R

public static final KeyID R

S

public static final KeyID S

T

public static final KeyID T

U

public static final KeyID U

V

public static final KeyID V

W

public static final KeyID W

X

public static final KeyID X

Y

public static final KeyID Y

Z

public static final KeyID Z

TAB

public static final KeyID TAB

SPACE

public static final KeyID SPACE

BACK_SPACE

public static final KeyID BACK_SPACE

ENTER

public static final KeyID ENTER

LEFT_SHIFT

public static final KeyID LEFT_SHIFT

RIGHT_SHIFT

public static final KeyID RIGHT_SHIFT

LEFT_CONTROL

public static final KeyID LEFT_CONTROL

RIGHT_CONTROL

public static final KeyID RIGHT_CONTROL

ALT

public static final KeyID ALT

ALT_GRAPH

public static final KeyID ALT_GRAPH

LEFT_META

public static final KeyID LEFT_META

RIGHT_META

public static final KeyID RIGHT_META

CAPS_LOCK

public static final KeyID CAPS_LOCK

DELETE

public static final KeyID DELETE

INSERT

public static final KeyID INSERT

END

public static final KeyID END

HOME

public static final KeyID HOME

PAGE_UP

public static final KeyID PAGE_UP

PAGE_DOWN

public static final KeyID PAGE_DOWN

RIGHT

public static final KeyID RIGHT

LEFT

public static final KeyID LEFT

UP

public static final KeyID UP

DOWN

public static final KeyID DOWN

NUM_LOCK

public static final KeyID NUM_LOCK

NUMPAD_DIVIDE

public static final KeyID NUMPAD_DIVIDE

NUMPAD_MULTIPLY

public static final KeyID NUMPAD_MULTIPLY

NUMPAD_SUBTRACT

public static final KeyID NUMPAD_SUBTRACT

NUMPAD_ADD

public static final KeyID NUMPAD_ADD

NUMPAD_ENTER

public static final KeyID NUMPAD_ENTER

NUMPAD_DECIMAL

public static final KeyID NUMPAD_DECIMAL

NUMPAD0

public static final KeyID NUMPAD0

NUMPAD1

public static final KeyID NUMPAD1

NUMPAD2

public static final KeyID NUMPAD2

NUMPAD3

public static final KeyID NUMPAD3

NUMPAD4

public static final KeyID NUMPAD4

NUMPAD5

public static final KeyID NUMPAD5

NUMPAD6

public static final KeyID NUMPAD6

NUMPAD7

public static final KeyID NUMPAD7

NUMPAD8

public static final KeyID NUMPAD8

NUMPAD9

public static final KeyID NUMPAD9

LOCAL_KEY1

public static final KeyID LOCAL_KEY1
See Also:
Keys.LOCAL_KEY1

LOCAL_KEY2

public static final KeyID LOCAL_KEY2
See Also:
Keys.LOCAL_KEY2

LOCAL_KEY3

public static final KeyID LOCAL_KEY3
See Also:
Keys.LOCAL_KEY3

LOCAL_KEY4

public static final KeyID LOCAL_KEY4
See Also:
Keys.LOCAL_KEY4

LOCAL_KEY5

public static final KeyID LOCAL_KEY5
See Also:
Keys.LOCAL_KEY5

LOCAL_KEY6

public static final KeyID LOCAL_KEY6
See Also:
Keys.LOCAL_KEY6

LOCAL_KEY7

public static final KeyID LOCAL_KEY7
See Also:
Keys.LOCAL_KEY7

LOCAL_KEY8

public static final KeyID LOCAL_KEY8
See Also:
Keys.LOCAL_KEY8

LOCAL_KEY9

public static final KeyID LOCAL_KEY9
See Also:
Keys.LOCAL_KEY9

LOCAL_KEY10

public static final KeyID LOCAL_KEY10
See Also:
Keys.LOCAL_KEY10

LOCAL_KEY11

public static final KeyID LOCAL_KEY11
See Also:
Keys.LOCAL_KEY11
Method Detail

values

public static KeyID[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (KeyID c : KeyID.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static KeyID valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getKey

public final Key getKey()
Returns:
the corresponding Key.

valueOf

public static final KeyID valueOf(Key key)
Parameters:
key -
Returns:
the KeyID, that corresponds to the given Key.