Enum Class Pivot

java.lang.Object
java.lang.Enum<Pivot>
net.risingworld.api.ui.style.Pivot
All Implemented Interfaces:
Serializable, Comparable<Pivot>, Constable

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

    • UpperLeft

      public static final Pivot UpperLeft
      Default
    • UpperCenter

      public static final Pivot UpperCenter
    • UpperRight

      public static final Pivot UpperRight
    • MiddleLeft

      public static final Pivot MiddleLeft
    • MiddleCenter

      public static final Pivot MiddleCenter
    • MiddleRight

      public static final Pivot MiddleRight
    • LowerLeft

      public static final Pivot LowerLeft
    • LowerCenter

      public static final Pivot LowerCenter
    • LowerRight

      public static final Pivot LowerRight
  • Method Details

    • values

      public static Pivot[] 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 Pivot 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
    • get

      public static Pivot get(int ordinal)
      Gets an enum from the ordinal value.
      Parameters:
      ordinal - the ordinal value (index).
      Returns:
      the according enum.