public static enum AutocadScript.TextAnchor extends Enum<AutocadScript.TextAnchor>
The coordinates specified when printing texts will be the coordinates of this anchor point, and the text will be printed relative to that anchor point according to the anchor type.
For example, if the anchor type is TOP_LEFT, the top left position of the text will be fixed, and from there the text may expand freely to the bottom and to the right depending on the length of the text and the font size.
Enum Constant and Description |
---|
BOTTOM_CENTER |
BOTTOM_LEFT |
BOTTOM_RIGHT |
MID_CENTER |
MID_LEFT |
MID_RIGHT |
TOP_CENTER |
TOP_LEFT |
TOP_RIGHT |
Modifier and Type | Method and Description |
---|---|
static AutocadScript.TextAnchor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutocadScript.TextAnchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutocadScript.TextAnchor BOTTOM_CENTER
public static final AutocadScript.TextAnchor BOTTOM_LEFT
public static final AutocadScript.TextAnchor BOTTOM_RIGHT
public static final AutocadScript.TextAnchor MID_CENTER
public static final AutocadScript.TextAnchor MID_LEFT
public static final AutocadScript.TextAnchor MID_RIGHT
public static final AutocadScript.TextAnchor TOP_CENTER
public static final AutocadScript.TextAnchor TOP_LEFT
public static final AutocadScript.TextAnchor TOP_RIGHT
public static AutocadScript.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 nullpublic static AutocadScript.TextAnchor[] values()
for (AutocadScript.TextAnchor c : AutocadScript.TextAnchor.values()) System.out.println(c);