Enum LinearLayout.Alignment

java.lang.Object
java.lang.Enum<LinearLayout.Alignment>
com.googlecode.lanterna.gui2.LinearLayout.Alignment
All Implemented Interfaces:
Serializable, Comparable<LinearLayout.Alignment>, java.lang.constant.Constable
Enclosing class:
LinearLayout

public static enum LinearLayout.Alignment extends Enum<LinearLayout.Alignment>
This enum type will decide the alignment of a component on the counter-axis, meaning the horizontal alignment on vertical LinearLayouts and vertical alignment on horizontal LinearLayouts.
  • Enum Constant Details

    • Beginning

      public static final LinearLayout.Alignment Beginning
      The component will be placed to the left (for vertical layouts) or top (for horizontal layouts)
    • Center

      public static final LinearLayout.Alignment Center
      The component will be placed horizontally centered (for vertical layouts) or vertically centered (for horizontal layouts)
    • End

      public static final LinearLayout.Alignment End
      The component will be placed to the right (for vertical layouts) or bottom (for horizontal layouts)
    • Fill

      public static final LinearLayout.Alignment Fill
      The component will be forced to take up all the horizontal space (for vertical layouts) or vertical space (for horizontal layouts)
  • Method Details

    • values

      public static LinearLayout.Alignment[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LinearLayout.Alignment valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null