Enum Class HorizAlignTextMode

java.lang.Object
java.lang.Enum<HorizAlignTextMode>
org.refcodes.textual.HorizAlignTextMode
All Implemented Interfaces:
Serializable, Comparable<HorizAlignTextMode>, Constable

public enum HorizAlignTextMode extends Enum<HorizAlignTextMode>
The HorizAlignTextMode specifies for according algorithms on how a line is to be aligned.
  • Enum Constant Details

    • LEFT

      public static final HorizAlignTextMode LEFT
      Left alignment according to the required width.
    • CENTER

      public static final HorizAlignTextMode CENTER
      Center alignment relative to the required width.
    • BLOCK

      public static final HorizAlignTextMode BLOCK
      Block mode, extends the line's spaces round robin with additional spaces till the width is reached.
  • Method Details

    • values

      public static HorizAlignTextMode[] 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 HorizAlignTextMode 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