public enum TextWrapping extends Enum<TextWrapping>
Enum Constant and Description |
---|
NO_WRAP
The text is not wrapped.
|
WRAP
A line break is inserted if a line overflows the width of its desired box, even if there is no line-breaking
opportunity.
|
Modifier and Type | Method and Description |
---|---|
static TextWrapping |
fromOrdinal(int ordinal) |
int |
value() |
static TextWrapping |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextWrapping[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextWrapping NO_WRAP
public static final TextWrapping WRAP
public static final TextWrapping fromOrdinal(int ordinal)
public int value()
public static TextWrapping valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static TextWrapping[] values()
for (TextWrapping c : TextWrapping.values()) System.out.println(c);