public enum TextAlignment extends Enum<TextAlignment>
GraphicContext
.Enum Constant and Description |
---|
CENTER
Text is displayed in the center.
|
LEFT
Text is displayed on the left.
|
RIGHT
Text is displayed on the right.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
drawText(GraphicContext gc,
Area area,
String text) |
static TextAlignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAlignment LEFT
public static final TextAlignment RIGHT
public static final TextAlignment CENTER
public static TextAlignment[] values()
for (TextAlignment c : TextAlignment.values()) System.out.println(c);
public static 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 nullpublic abstract void drawText(GraphicContext gc, Area area, String text)
Copyright © 2020. All rights reserved.