Enum WrapBehaviour

java.lang.Object
java.lang.Enum<WrapBehaviour>
com.googlecode.lanterna.screen.WrapBehaviour
All Implemented Interfaces:
Serializable, Comparable<WrapBehaviour>, java.lang.constant.Constable

public enum WrapBehaviour extends Enum<WrapBehaviour>
What to do when line length is exceeded.
  • Enum Constant Details

    • SINGLE_LINE

      public static final WrapBehaviour SINGLE_LINE
      Never ever leave current line.
    • CLIP

      public static final WrapBehaviour CLIP
      Don't wrap lines automatically, but honor explicit line-feeds.
    • CHAR

      public static final WrapBehaviour CHAR
      Wrap at any character boundaries.
    • WORD

      public static final WrapBehaviour WORD
      Only wrap at word boundaries. If a single word exceeds line length, it will still be broken to line length.
  • Field Details

    • allowLineFeed

      private final boolean allowLineFeed
    • autoWrap

      private final boolean autoWrap
    • keepWords

      private final boolean keepWords
  • Constructor Details

    • WrapBehaviour

      private WrapBehaviour(boolean allowLineFeed, boolean autoWrap, boolean keepWords)
  • Method Details

    • values

      public static WrapBehaviour[] 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 WrapBehaviour 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
    • allowLineFeed

      public boolean allowLineFeed()
    • autoWrap

      public boolean autoWrap()
    • keepWords

      public boolean keepWords()