public enum TextAlignMode extends Enum<TextAlignMode>
TextAlignMode
specifies for according algorithms on how a line is
to be aligned.Enum Constant and Description |
---|
BLOCK
Block mode, extends the line's spaces round robin with additional spaces
till the width is reached.
|
CENTER
Center alignment relative to the required width.
|
LEFT
Left alignment according to the required width.
|
RIGHT
Right alignment according to the required width.
|
Modifier and Type | Method and Description |
---|---|
static TextAlignMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextAlignMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAlignMode LEFT
public static final TextAlignMode CENTER
public static final TextAlignMode RIGHT
public static final TextAlignMode BLOCK
public static TextAlignMode[] values()
for (TextAlignMode c : TextAlignMode.values()) System.out.println(c);
public static TextAlignMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All rights reserved.