public enum TextBaseline extends Enum<TextBaseline>
Enum Constant and Description |
---|
alphabetic
The alphabetic baseline, this is the default value.
|
bottom
The bottom of the em square
|
hanging
The hanging baseline
|
ideographic
The ideographic baseline
|
middle
The middle of the em square
|
top
The top of the em square
|
Modifier and Type | Method and Description |
---|---|
static TextBaseline |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextBaseline[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextBaseline top
public static final TextBaseline hanging
public static final TextBaseline middle
public static final TextBaseline alphabetic
public static final TextBaseline ideographic
public static final TextBaseline bottom
public static TextBaseline[] values()
for (TextBaseline c : TextBaseline.values()) System.out.println(c);
public static TextBaseline 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 nullCopyright © 2018 Xalys. All rights reserved.