Enum Class Breaker.BreakTextResult

java.lang.Object
java.lang.Enum<Breaker.BreakTextResult>
com.openhtmltopdf.layout.Breaker.BreakTextResult
All Implemented Interfaces:
Serializable, Comparable<Breaker.BreakTextResult>, Constable
Enclosing class:
Breaker

public static enum Breaker.BreakTextResult extends Enum<Breaker.BreakTextResult>
  • Enum Constant Details

    • FINISHED

      public static final Breaker.BreakTextResult FINISHED
      Has completely consumed the string.
    • CONTINUE_CHAR_BREAKING_ON_NL

      public static final Breaker.BreakTextResult CONTINUE_CHAR_BREAKING_ON_NL
      In char breaking mode, need a newline before continuing. At least one character has been consumed.
    • CONTINUE_WORD_BREAKING_ON_NL

      public static final Breaker.BreakTextResult CONTINUE_WORD_BREAKING_ON_NL
      In word breaking mode, need a newline before continuing. At least one word has been consumed.
    • CHAR_UNBREAKABLE_BUT_CONSUMED

      public static final Breaker.BreakTextResult CHAR_UNBREAKABLE_BUT_CONSUMED
      Not a single char fitted, but we consumed one character anyway.
    • WORD_UNBREAKABLE_BUT_CONSUMED

      public static final Breaker.BreakTextResult WORD_UNBREAKABLE_BUT_CONSUMED
      Not a single word fitted, but we consumed a word anyway. Only returned when word-wrap is not break-word.
    • DANGER_RECONSUME_CHAR_ON_NL

      public static final Breaker.BreakTextResult DANGER_RECONSUME_CHAR_ON_NL
      DANGER: Last char did not fit and we are directing the parent method to reconsume char on a newline. Example, below floats.
    • DANGER_RECONSUME_WORD_ON_NL

      public static final Breaker.BreakTextResult DANGER_RECONSUME_WORD_ON_NL
      DANGER: Last word did not fit and we are directing the parent method to reconsume word on a newline. Example, below floats.
  • Constructor Details

    • BreakTextResult

      private BreakTextResult()
  • Method Details

    • values

      public static Breaker.BreakTextResult[] 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 Breaker.BreakTextResult 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