Package com.openhtmltopdf.layout
Enum LineBreakContext.LineBreakResult
- java.lang.Object
-
- java.lang.Enum<LineBreakContext.LineBreakResult>
-
- com.openhtmltopdf.layout.LineBreakContext.LineBreakResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LineBreakContext.LineBreakResult>
- Enclosing class:
- LineBreakContext
public static enum LineBreakContext.LineBreakResult extends java.lang.Enum<LineBreakContext.LineBreakResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHAR_BREAKING_FINISHED
CHAR_BREAKING_FOUND_WORD_BREAK
CHAR_BREAKING_NEED_NEW_LINE
CHAR_BREAKING_UNBREAKABLE
WORD_BREAKING_FINISHED
WORD_BREAKING_NEED_NEW_LINE
WORD_BREAKING_UNBREAKABLE
-
Constructor Summary
Constructors Modifier Constructor Description private
LineBreakResult()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LineBreakContext.LineBreakResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LineBreakContext.LineBreakResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHAR_BREAKING_NEED_NEW_LINE
public static final LineBreakContext.LineBreakResult CHAR_BREAKING_NEED_NEW_LINE
-
WORD_BREAKING_NEED_NEW_LINE
public static final LineBreakContext.LineBreakResult WORD_BREAKING_NEED_NEW_LINE
-
CHAR_BREAKING_UNBREAKABLE
public static final LineBreakContext.LineBreakResult CHAR_BREAKING_UNBREAKABLE
-
WORD_BREAKING_UNBREAKABLE
public static final LineBreakContext.LineBreakResult WORD_BREAKING_UNBREAKABLE
-
CHAR_BREAKING_FOUND_WORD_BREAK
public static final LineBreakContext.LineBreakResult CHAR_BREAKING_FOUND_WORD_BREAK
-
CHAR_BREAKING_FINISHED
public static final LineBreakContext.LineBreakResult CHAR_BREAKING_FINISHED
-
WORD_BREAKING_FINISHED
public static final LineBreakContext.LineBreakResult WORD_BREAKING_FINISHED
-
-
Method Detail
-
values
public static LineBreakContext.LineBreakResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LineBreakContext.LineBreakResult c : LineBreakContext.LineBreakResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LineBreakContext.LineBreakResult valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-