Enum Class Align

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

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

    • Auto

      public static final Align Auto
      Default: Alignment is handled by Flex
    • FlexStart

      public static final Align FlexStart
      Start margin of the item is placed at the start of the axis
    • Center

      public static final Align Center
      Items are centered on the axis
    • FlexEnd

      public static final Align FlexEnd
      End margin of the item is placed at the end of the axis
    • Stretch

      public static final Align Stretch
      Stretch to fill the axis while respecting the min and max values
  • Method Details

    • values

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