Package com.openhtmltopdf.layout
Enum Class Breaker.BreakTextResult
- All Implemented Interfaces:
Serializable
,Comparable<Breaker.BreakTextResult>
,Constable
- Enclosing class:
Breaker
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNot a single char fitted, but we consumed one character anyway.In char breaking mode, need a newline before continuing.In word breaking mode, need a newline before continuing.DANGER: Last char did not fit and we are directing the parent method to reconsume char on a newline.DANGER: Last word did not fit and we are directing the parent method to reconsume word on a newline.Has completely consumed the string.Not a single word fitted, but we consumed a word anyway. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Breaker.BreakTextResult
Returns the enum constant of this class with the specified name.static Breaker.BreakTextResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FINISHED
Has completely consumed the string. -
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
In word breaking mode, need a newline before continuing. At least one word has been consumed. -
CHAR_UNBREAKABLE_BUT_CONSUMED
Not a single char fitted, but we consumed one character anyway. -
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
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
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
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
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 nameNullPointerException
- if the argument is null
-