Enum Class ModifierKey

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

public enum ModifierKey extends Enum<ModifierKey>
  • Enum Constant Details

    • SHORTCUT

      public static final ModifierKey SHORTCUT
      The platform-dependent primary modifier key for menu shortcuts: command (cloverleaf-like symbol) on macOS, control on Windows.
    • COMMAND_OR_META

      public static final ModifierKey COMMAND_OR_META
      The command key on macOS.
    • OPTION_OR_ALT

      public static final ModifierKey OPTION_OR_ALT
      The option key on macOS, or alt key on Windows.
    • CONTROL

      public static final ModifierKey CONTROL
      The control (or ctrl) key.
    • SHIFT

      public static final ModifierKey SHIFT
      The shift key.
  • Method Details

    • values

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