Package edu.macalester.graphics.events
Enum Class ModifierKey
- All Implemented Interfaces:
Serializable
,Comparable<ModifierKey>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe command key on macOS.The control (or ctrl) key.The option key on macOS, or alt key on Windows.The shift key.The platform-dependent primary modifier key for menu shortcuts: command (cloverleaf-like symbol) on macOS, control on Windows. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModifierKey
Returns the enum constant of this class with the specified name.static ModifierKey[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHORTCUT
The platform-dependent primary modifier key for menu shortcuts: command (cloverleaf-like symbol) on macOS, control on Windows. -
COMMAND_OR_META
The command key on macOS. -
OPTION_OR_ALT
The option key on macOS, or alt key on Windows. -
CONTROL
The control (or ctrl) key. -
SHIFT
The shift key.
-
-
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
-