public static enum LazyFont.TextAnchor extends Enum<LazyFont.TextAnchor>
LazyFont.DrawableString
s. For example, calling DrawableString#setAnchor(TextAnchor)
with TOP_RIGHT
would mean all calls to LazyFont.DrawableString.draw(float, float)
will consider the top right of the LazyFont.DrawableString
to be the origin
when drawing, meaning all text would appear to the left and below the point passed into LazyFont.DrawableString.draw(float, float)
.Enum Constant and Description |
---|
BOTTOM_CENTER
Text will be drawn centered above the origin.
|
BOTTOM_LEFT
Text will be drawn above and to the right of the origin.
|
BOTTOM_RIGHT
Text will be drawn below and to the left of the origin.
|
CENTER
Text will be drawn centered around the origin.
|
CENTER_LEFT
Text will be drawn centered to the right of the origin.
|
CENTER_RIGHT
Text will be drawn centered to the left of the origin.
|
TOP_CENTER
Text will be drawn centered below the origin.
|
TOP_LEFT
Text will be drawn below and to the right of the origin.
|
TOP_RIGHT
Text will be drawn below and to the left of the origin.
|
Modifier and Type | Method and Description |
---|---|
static LazyFont.TextAnchor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LazyFont.TextAnchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LazyFont.TextAnchor TOP_LEFT
public static final LazyFont.TextAnchor TOP_CENTER
public static final LazyFont.TextAnchor TOP_RIGHT
public static final LazyFont.TextAnchor CENTER_LEFT
public static final LazyFont.TextAnchor CENTER
public static final LazyFont.TextAnchor CENTER_RIGHT
public static final LazyFont.TextAnchor BOTTOM_LEFT
public static final LazyFont.TextAnchor BOTTOM_CENTER
public static final LazyFont.TextAnchor BOTTOM_RIGHT
public static LazyFont.TextAnchor[] values()
for (LazyFont.TextAnchor c : LazyFont.TextAnchor.values()) System.out.println(c);
public static LazyFont.TextAnchor 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