public enum CVerticalAlignment extends java.lang.Enum<CVerticalAlignment>
| Enum Constant and Description |
|---|
BASELINE
Default baseline alignment.
|
BOTTOM
Align to bottom of the line box / container.
|
MIDDLE
Align to vertical middle.
|
SUB
Subscript positioning.
|
SUPER
Superscript positioning.
|
TEXT_BOTTOM
Align to the bottom of the text (font metrics).
|
TEXT_TOP
Align to the top of the text (font metrics).
|
TOP
Align to top of the line box / container.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Get the integer value of this enum.
|
static CVerticalAlignment |
toEnum(int id)
Convert an integer id to
CVerticalAlignment. |
static CVerticalAlignment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CVerticalAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CVerticalAlignment BASELINE
public static final CVerticalAlignment SUB
public static final CVerticalAlignment SUPER
public static final CVerticalAlignment TEXT_TOP
public static final CVerticalAlignment TEXT_BOTTOM
public static final CVerticalAlignment TOP
public static final CVerticalAlignment MIDDLE
public static final CVerticalAlignment BOTTOM
public static CVerticalAlignment[] values()
for (CVerticalAlignment c : CVerticalAlignment.values()) System.out.println(c);
public static CVerticalAlignment 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 static CVerticalAlignment toEnum(int id)
CVerticalAlignment.
If the id is not recognized, BASELINE is returned by default.id - Integer id.BASELINE if unknown.public int getValue()