java.io.Serializable
, java.lang.Comparable<BreakType>
public enum BreakType extends java.lang.Enum<BreakType>
Enum Constant | Description |
---|---|
COLUMN |
Specifies that the current break shall restart itself on the next column
available on the current page when the document is displayed in page
view.
|
PAGE |
Specifies that the current break shall restart itself on the next page of
the document when the document is displayed in page view.
|
TEXT_WRAPPING |
Specifies that the current break shall restart itself on the next line in
the document when the document is displayed in page view.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getValue() |
|
static BreakType |
valueOf(int type) |
Returns the enum constant of this type with the specified name.
|
static BreakType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static BreakType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BreakType PAGE
public static final BreakType COLUMN
If the current section is not divided into columns, or the column break occurs in the last column on the current page when displayed, then the restart location for text shall be the next page in the document.
public static final BreakType TEXT_WRAPPING
public static BreakType[] values()
for (BreakType c : BreakType.values()) System.out.println(c);
public static BreakType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static BreakType valueOf(int type)
type
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright 2018 The Apache Software Foundation or its licensors, as applicable.