Enum Class TitlePosition

java.lang.Object
java.lang.Enum<TitlePosition>
com.github.tadukoo.view.lookandfeel.TitlePosition
All Implemented Interfaces:
Serializable, Comparable<TitlePosition>, Constable

public enum TitlePosition extends Enum<TitlePosition>
An enum used for Title Position (for Titled Borders)
Since:
Alpha v.0.2
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • 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
    Position the title above the border's bottom line.
    Position the title above the border's top line.
    Position the title below the border's bottom line.
    Position the title below the border's top line.
    Position the title in the middle of the border's bottom line.
    Position the title in the middle of the border's top line.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The value of the Title Position (used in Titled Border class)
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    TitlePosition(int value)
    Constructs a new Title Position with the given value
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    Returns the enum constant of this class with the specified name.
    static TitlePosition[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ABOVE_TOP

      public static final TitlePosition ABOVE_TOP
      Position the title above the border's top line.
    • TOP

      public static final TitlePosition TOP
      Position the title in the middle of the border's top line.
    • BELOW_TOP

      public static final TitlePosition BELOW_TOP
      Position the title below the border's top line.
    • ABOVE_BOTTOM

      public static final TitlePosition ABOVE_BOTTOM
      Position the title above the border's bottom line.
    • BOTTOM

      public static final TitlePosition BOTTOM
      Position the title in the middle of the border's bottom line.
    • BELOW_BOTTOM

      public static final TitlePosition BELOW_BOTTOM
      Position the title below the border's bottom line.
  • Field Details

    • value

      private final int value
      The value of the Title Position (used in Titled Border class)
  • Constructor Details

    • TitlePosition

      private TitlePosition(int value)
      Constructs a new Title Position with the given value
      Parameters:
      value - The value for this Title Position
  • Method Details

    • values

      public static TitlePosition[] 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 TitlePosition 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
    • getValue

      public int getValue()
      Returns:
      The value of the Title Position (used in Titled Border class)