Package tetris.gui

Enum Class ActionEvent

All Implemented Interfaces:
Serializable, Comparable<ActionEvent>, Constable

public enum ActionEvent extends Enum<ActionEvent>
The enumeration ActionEvent represents events used to move a Tetris figure.
Version:
2.1
Author:
Stephan Fischli
  • Enum Constant Details

    • SHIFT_DOWN

      public static final ActionEvent SHIFT_DOWN
    • SHIFT_LEFT

      public static final ActionEvent SHIFT_LEFT
    • SHIFT_RIGHT

      public static final ActionEvent SHIFT_RIGHT
    • ROTATE_LEFT

      public static final ActionEvent ROTATE_LEFT
    • ROTATE_RIGHT

      public static final ActionEvent ROTATE_RIGHT
    • DROP

      public static final ActionEvent DROP
  • Method Details

    • values

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