Enum GridLayout.Alignment

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

public static enum GridLayout.Alignment extends Enum<GridLayout.Alignment>
The enum is used to specify where in a grid cell a component should be placed, in the case that the preferred size of the component is smaller than the space in the cell. This class will generally use two alignments, one for horizontal and one for vertical.
  • 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
    Place the component at the start of the cell (horizontally or vertically) and leave whatever space is left after the preferred size empty.
    Place the component at the middle of the cell (horizontally or vertically) and leave the space before and after empty.
    Place the component at the end of the cell (horizontally or vertically) and leave whatever space is left before the preferred size empty.
    Force the component to be the same size as the table cell
  • 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 GridLayout.Alignment BEGINNING
      Place the component at the start of the cell (horizontally or vertically) and leave whatever space is left after the preferred size empty.
    • CENTER

      public static final GridLayout.Alignment CENTER
      Place the component at the middle of the cell (horizontally or vertically) and leave the space before and after empty.
    • END

      public static final GridLayout.Alignment END
      Place the component at the end of the cell (horizontally or vertically) and leave whatever space is left before the preferred size empty.
    • FILL

      public static final GridLayout.Alignment FILL
      Force the component to be the same size as the table cell
  • Constructor Details

    • Alignment

      private Alignment()
  • Method Details

    • values

      public static GridLayout.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 GridLayout.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