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.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The component will be placed to the left (for vertical layouts) or top (for horizontal layouts)
    The component will be placed horizontally centered (for vertical layouts) or vertically centered (for horizontal layouts)
    The component will be placed to the right (for vertical layouts) or bottom (for horizontal layouts)
    The component will be forced to take up all the horizontal space (for vertical layouts) or vertical space (for horizontal layouts)
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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)
  • Constructor Details

    • Alignment

      private Alignment()
  • 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