Serializable
, Comparable<HorizAlignTextMode>
public enum HorizAlignTextMode extends Enum<HorizAlignTextMode>
HorizAlignTextMode
specifies for according algorithms on how a
line is to be aligned.Enum Constant | 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 | Description |
---|---|---|
static HorizAlignTextMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static HorizAlignTextMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorizAlignTextMode LEFT
public static final HorizAlignTextMode CENTER
public static final HorizAlignTextMode RIGHT
public static final HorizAlignTextMode BLOCK
public static HorizAlignTextMode[] values()
for (HorizAlignTextMode c : HorizAlignTextMode.values()) System.out.println(c);
public static HorizAlignTextMode 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 © 2018. All rights reserved.