Serializable
, Comparable<HorizontalAlignment>
public enum HorizontalAlignment extends Enum<HorizontalAlignment>
Enum Constant | Description |
---|---|
CENTER |
If the preferred width is less than the available width, the relevant
component is horizontally centerd in its parent.
|
FILL |
The component is placed to fill all available width from its parent.
|
LEADING |
If the preferred width is less than the available width, the relevant
component is placed at the leading position in its parent (left for LTR
and right for RTL).
|
TRAILING |
If the preferred width is less than the available width, the relevant
component is placed at the trailing position in its parent (right for LTR
and left for RTL).
|
Modifier and Type | Method | Description |
---|---|---|
static HorizontalAlignment |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static HorizontalAlignment[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorizontalAlignment LEADING
public static final HorizontalAlignment CENTER
public static final HorizontalAlignment TRAILING
public static final HorizontalAlignment FILL
public static HorizontalAlignment[] values()
for (HorizontalAlignment c : HorizontalAlignment.values()) System.out.println(c);
public static HorizontalAlignment 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 null