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.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
public static final LazyFont.TextAlignment RIGHT
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