Enum Class TextAnchor

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

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

    • UpperLeft

      public static final TextAnchor UpperLeft
      Default: Text is anchored in upper left corner
    • UpperCenter

      public static final TextAnchor UpperCenter
      Text is anchored in upper center
    • UpperRight

      public static final TextAnchor UpperRight
      Text is anchored in upper right corner
    • MiddleLeft

      public static final TextAnchor MiddleLeft
      Text is anchored in middle left center
    • MiddleCenter

      public static final TextAnchor MiddleCenter
      Text is anchored in center
    • MiddleRight

      public static final TextAnchor MiddleRight
      Text is anchored in middle right center
    • LowerLeft

      public static final TextAnchor LowerLeft
      Text is anchored in lower left corner
    • LowerCenter

      public static final TextAnchor LowerCenter
      Text is anchored in lower left center
    • LowerRight

      public static final TextAnchor LowerRight
      Text is anchored in lower right corner
  • Method Details

    • values

      public static TextAnchor[] 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 TextAnchor 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 TextAnchor get(int ordinal)
      Gets an enum from the ordinal value.
      Parameters:
      ordinal - the ordinal value (index).
      Returns:
      the according enum.