| Enum Constant and Description |
|---|
BaseCenter |
BaseLeft |
BaseRight |
BotCenter |
BotLeft |
BotRight |
Center |
Left |
LineCenter |
LineLeft |
LineRight |
Right |
TopCenter |
TopLeft |
TopRight |
| Modifier and Type | Method and Description |
|---|---|
void |
getCenteringOffset(Point dst,
Size area,
Size contents) |
void |
getPositioningOffset(Point dst,
Size size) |
void |
getTextArea(TextArea dst,
TextSize size) |
boolean |
isBotAlign() |
boolean |
isLeftAlign() |
boolean |
isRightAlign() |
boolean |
isTopAlign() |
static Anchor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Anchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Anchor TopLeft
public static final Anchor TopCenter
public static final Anchor TopRight
public static final Anchor Left
public static final Anchor Center
public static final Anchor Right
public static final Anchor BaseLeft
public static final Anchor BaseCenter
public static final Anchor BaseRight
public static final Anchor BotLeft
public static final Anchor BotCenter
public static final Anchor BotRight
public static final Anchor LineLeft
public static final Anchor LineCenter
public static final Anchor LineRight
public static Anchor[] values()
for (Anchor c : Anchor.values()) System.out.println(c);
public static Anchor valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final boolean isTopAlign()
public final boolean isBotAlign()
public final boolean isLeftAlign()
public final boolean isRightAlign()
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com