public static enum Context2d.TextBaseline extends java.lang.Enum<Context2d.TextBaseline>
Context2d.setTextBaseline(TextBaseline)
Enum Constant and Description |
---|
ALPHABETIC |
BOTTOM |
HANGING |
IDEOGRAPHIC |
MIDDLE |
TOP |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static Context2d.TextBaseline |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Context2d.TextBaseline[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Context2d.TextBaseline ALPHABETIC
public static final Context2d.TextBaseline BOTTOM
public static final Context2d.TextBaseline HANGING
public static final Context2d.TextBaseline IDEOGRAPHIC
public static final Context2d.TextBaseline MIDDLE
public static final Context2d.TextBaseline TOP
public static Context2d.TextBaseline[] values()
for (Context2d.TextBaseline c : Context2d.TextBaseline.values()) System.out.println(c);
public static Context2d.TextBaseline valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()