Enum Class Key

java.lang.Object
java.lang.Enum<Key>
edu.macalester.graphics.events.Key
All Implemented Interfaces:
Serializable, Comparable<Key>, Constable

public enum Key extends Enum<Key>
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:
  • Enum Constant Details

    • NUM_0

      public static final Key NUM_0
    • NUM_1

      public static final Key NUM_1
    • NUM_2

      public static final Key NUM_2
    • NUM_3

      public static final Key NUM_3
    • NUM_4

      public static final Key NUM_4
    • NUM_5

      public static final Key NUM_5
    • NUM_6

      public static final Key NUM_6
    • NUM_7

      public static final Key NUM_7
    • NUM_8

      public static final Key NUM_8
    • NUM_9

      public static final Key NUM_9
    • A

      public static final Key A
    • B

      public static final Key B
    • C

      public static final Key C
    • D

      public static final Key D
    • E

      public static final Key E
    • F

      public static final Key F
    • G

      public static final Key G
    • H

      public static final Key H
    • I

      public static final Key I
    • J

      public static final Key J
    • K

      public static final Key K
    • L

      public static final Key L
    • M

      public static final Key M
    • N

      public static final Key N
    • O

      public static final Key O
    • P

      public static final Key P
    • Q

      public static final Key Q
    • R

      public static final Key R
    • S

      public static final Key S
    • T

      public static final Key T
    • U

      public static final Key U
    • V

      public static final Key V
    • W

      public static final Key W
    • X

      public static final Key X
    • Y

      public static final Key Y
    • Z

      public static final Key Z
    • SHIFT

      public static final Key SHIFT
    • CONTROL

      public static final Key CONTROL
    • ALT

      public static final Key ALT
    • CAPS_LOCK

      public static final Key CAPS_LOCK
    • NUM_LOCK

      public static final Key NUM_LOCK
    • SCROLL_LOCK

      public static final Key SCROLL_LOCK
    • WINDOWS

      public static final Key WINDOWS
    • CONTEXT_MENU

      public static final Key CONTEXT_MENU
    • COMMAND_OR_META

      public static final Key COMMAND_OR_META
    • PRINTSCREEN

      public static final Key PRINTSCREEN
    • INSERT

      public static final Key INSERT
    • HELP

      public static final Key HELP
    • LEFT_ARROW

      public static final Key LEFT_ARROW
    • UP_ARROW

      public static final Key UP_ARROW
    • RIGHT_ARROW

      public static final Key RIGHT_ARROW
    • DOWN_ARROW

      public static final Key DOWN_ARROW
    • PAGE_UP

      public static final Key PAGE_UP
    • PAGE_DOWN

      public static final Key PAGE_DOWN
    • END

      public static final Key END
    • HOME

      public static final Key HOME
    • DELETE_OR_BACKSPACE

      public static final Key DELETE_OR_BACKSPACE
    • FORWARD_DELETE

      public static final Key FORWARD_DELETE
    • ESCAPE

      public static final Key ESCAPE
    • CANCEL

      public static final Key CANCEL
    • CLEAR

      public static final Key CLEAR
    • PAUSE

      public static final Key PAUSE
    • SPACE

      public static final Key SPACE
    • TAB

      public static final Key TAB
    • RETURN_OR_ENTER

      public static final Key RETURN_OR_ENTER
    • APOSTROPHE

      public static final Key APOSTROPHE
    • BACKSLASH

      public static final Key BACKSLASH
    • BACKTICK

      public static final Key BACKTICK
    • COMMA

      public static final Key COMMA
    • PERIOD

      public static final Key PERIOD
    • MINUS

      public static final Key MINUS
    • EQUALS

      public static final Key EQUALS
    • SEMICOLON

      public static final Key SEMICOLON
    • SLASH

      public static final Key SLASH
    • LEFT_SQUARE_BRACKET

      public static final Key LEFT_SQUARE_BRACKET
    • RIGHT_SQUARE_BRACKET

      public static final Key RIGHT_SQUARE_BRACKET
    • F1

      public static final Key F1
    • F2

      public static final Key F2
    • F3

      public static final Key F3
    • F4

      public static final Key F4
    • F5

      public static final Key F5
    • F6

      public static final Key F6
    • F7

      public static final Key F7
    • F8

      public static final Key F8
    • F9

      public static final Key F9
    • F10

      public static final Key F10
    • F11

      public static final Key F11
    • F12

      public static final Key F12
    • F13

      public static final Key F13
    • F14

      public static final Key F14
    • F15

      public static final Key F15
    • F16

      public static final Key F16
    • F17

      public static final Key F17
    • F18

      public static final Key F18
    • F19

      public static final Key F19
    • F20

      public static final Key F20
    • F21

      public static final Key F21
    • F22

      public static final Key F22
    • F23

      public static final Key F23
    • F24

      public static final Key F24
    • UNKNOWN

      public static final Key UNKNOWN
      A key that either Java or kilt-graphics does not recognize.
  • Method Details

    • values

      public static Key[] 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

      public static Key valueOf(String name)
      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 name
      NullPointerException - if the argument is null