Serializable, Comparable<Element.Alignment>public static enum Element.Alignment extends Enum<Element.Alignment>
| Enum Constant | Description |
|---|---|
BOTTOM |
Widget will be bottom aligned, its top position will be computed from its bottom part.
|
CENTER |
Widget will be centered its left position will be computed from its half width and the top will be assumed to be its half height.
|
LEFT |
Widget will be left aligned, its left position will be computed from its left part.
|
RIGHT |
Widget will be right aligned, its left position will be computed from its right part.
|
TOP |
Widget will be top aligned, its top position will be computed from its top part.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Element.Alignment |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Element.Alignment[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Element.Alignment LEFT
public static final Element.Alignment RIGHT
public static final Element.Alignment TOP
public static final Element.Alignment BOTTOM
public static final Element.Alignment CENTER
public static Element.Alignment[] values()
for (Element.Alignment c : Element.Alignment.values()) System.out.println(c);
public static Element.Alignment 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 © 2014–2018. All rights reserved.