Enum Class Justify

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

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

    • FlexStart

      public static final Justify FlexStart
      Default: Elements are packed towards the start line
    • Center

      public static final Justify Center
      Elements are centered along the line
    • FlexEnd

      public static final Justify FlexEnd
      Elements are packed towards the end line
    • SpaceBetween

      public static final Justify SpaceBetween
      Elements are evenly distributed in the line. The first item is on the start line, the last item on the end line
    • SpaceAround

      public static final Justify SpaceAround
      Elements are evenly distributed in the line with equal space around them
  • Method Details

    • values

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