public enum HAlign extends Enum<HAlign>
| Enum Constant and Description |
|---|
center
Center align.
|
left
Left align.
|
right
Right align.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
position(String text,
int colWidth)
Calculate text position.
|
static HAlign |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HAlign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HAlign center
public static final HAlign left
public static final HAlign right
public static HAlign[] values()
for (HAlign c : HAlign.values()) System.out.println(c);
public static HAlign 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 © 2007–2018 The Apache Software Foundation. All rights reserved.