public static enum LazyFont.TextAlignment extends Enum<LazyFont.TextAlignment>
LazyFont.DrawableString's render area. Text can be left-aligned (the
default), centered, or right-aligned. Anything other than left-aligned requires the LazyFont.DrawableString's
maximum width to be set, either through its construction in LazyFont.createText() or by calling LazyFont.DrawableString.setMaxWidth(float).| Enum Constant and Description |
|---|
CENTER
Text will be drawn centered within the text area.
|
LEFT
Text will align with the left side of the text area.
|
RIGHT
Text will align with the right of the text area.
|
| Modifier and Type | Method and Description |
|---|---|
static LazyFont.TextAlignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LazyFont.TextAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LazyFont.TextAlignment LEFT
public static final LazyFont.TextAlignment CENTER
LazyFont.DrawableString must have
its maximum width set (either through its construction in LazyFont.createText() or by calling LazyFont.DrawableString.setMaxWidth(float)) for this to work properly.public static final LazyFont.TextAlignment RIGHT
LazyFont.DrawableString must have
its maximum width set (either through its construction in LazyFont.createText() or by calling LazyFont.DrawableString.setMaxWidth(float)) for this to work properly.public static LazyFont.TextAlignment[] values()
for (LazyFont.TextAlignment c : LazyFont.TextAlignment.values()) System.out.println(c);
public static LazyFont.TextAlignment 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