Enum BorderLayout.Location

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

public static enum BorderLayout.Location extends Enum<BorderLayout.Location> implements LayoutData
This type is what you use as the layout data for components added to a panel using BorderLayout for its layout manager. This values specified where inside the panel the component should be added.
  • 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 with this value as its layout data will occupy the bottom side of the container, attempting to allocate the preferred height of the component and at least the preferred width, but could be more depending on the other components added.
    The component with this value as its layout data will occupy the center space, whatever is remaining after the other components (if any) have allocated their space.
    The component with this value as its layout data will occupy the left side of the container, attempting to allocate the preferred width of the component and at least the preferred height, but could be more depending on the other components added.
    The component with this value as its layout data will occupy the right side of the container, attempting to allocate the preferred width of the component and at least the preferred height, but could be more depending on the other components added.
    The component with this value as its layout data will occupy the top side of the container, attempting to allocate the preferred height of the component and at least the preferred width, but could be more depending on the other components added.
  • 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

    • CENTER

      public static final BorderLayout.Location CENTER
      The component with this value as its layout data will occupy the center space, whatever is remaining after the other components (if any) have allocated their space.
    • LEFT

      public static final BorderLayout.Location LEFT
      The component with this value as its layout data will occupy the left side of the container, attempting to allocate the preferred width of the component and at least the preferred height, but could be more depending on the other components added.
    • TOP

      public static final BorderLayout.Location TOP
      The component with this value as its layout data will occupy the top side of the container, attempting to allocate the preferred height of the component and at least the preferred width, but could be more depending on the other components added.
    • BOTTOM

      public static final BorderLayout.Location BOTTOM
      The component with this value as its layout data will occupy the bottom side of the container, attempting to allocate the preferred height of the component and at least the preferred width, but could be more depending on the other components added.
  • Constructor Details

    • Location

      private Location()
  • Method Details

    • values

      public static BorderLayout.Location[] 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 BorderLayout.Location 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