Package edu.macalester.graphics.events
Enum Class Key
- All Implemented Interfaces:
Serializable
,Comparable<Key>
,Constable
A key on the keyboard. Note that this represents the key itself, not the character the
user typed. For example, if the user types an exclamation point, the KeyEvent the app receives
will be NUM_1 with a SHIFT modifier.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA key that either Java or kilt-graphics does not recognize. -
Method Summary
-
Enum Constant Details
-
NUM_0
-
NUM_1
-
NUM_2
-
NUM_3
-
NUM_4
-
NUM_5
-
NUM_6
-
NUM_7
-
NUM_8
-
NUM_9
-
A
-
B
-
C
-
D
-
E
-
F
-
G
-
H
-
I
-
J
-
K
-
L
-
M
-
N
-
O
-
P
-
Q
-
R
-
S
-
T
-
U
-
V
-
W
-
X
-
Y
-
Z
-
SHIFT
-
CONTROL
-
ALT
-
CAPS_LOCK
-
NUM_LOCK
-
SCROLL_LOCK
-
WINDOWS
-
CONTEXT_MENU
-
COMMAND_OR_META
-
PRINTSCREEN
-
INSERT
-
HELP
-
LEFT_ARROW
-
UP_ARROW
-
RIGHT_ARROW
-
DOWN_ARROW
-
PAGE_UP
-
PAGE_DOWN
-
END
-
HOME
-
DELETE_OR_BACKSPACE
-
FORWARD_DELETE
-
ESCAPE
-
CANCEL
-
CLEAR
-
PAUSE
-
SPACE
-
TAB
-
RETURN_OR_ENTER
-
APOSTROPHE
-
BACKSLASH
-
BACKTICK
-
COMMA
-
PERIOD
-
MINUS
-
EQUALS
-
SEMICOLON
-
SLASH
-
LEFT_SQUARE_BRACKET
-
RIGHT_SQUARE_BRACKET
-
F1
-
F2
-
F3
-
F4
-
F5
-
F6
-
F7
-
F8
-
F9
-
F10
-
F11
-
F12
-
F13
-
F14
-
F15
-
F16
-
F17
-
F18
-
F19
-
F20
-
F21
-
F22
-
F23
-
F24
-
UNKNOWN
A key that either Java or kilt-graphics does not recognize.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-