public enum TextAlignment extends java.lang.Enum<TextAlignment>
文本对齐方式枚举类。
枚举常量和说明 |
---|
BASELINECENTER
基准线居中对齐。
|
BASELINELEFT
基准线左对齐。
|
BASELINERIGHT
基准线右对齐。
|
BOTTOMCENTER
底部居中对齐。
|
BOTTOMLEFT
左下角对齐。
|
BOTTOMRIGHT
右下角对齐。
|
MIDDLECENTER
中心对齐。
|
MIDDLELEFT
左中对齐。
|
MIDDLERIGHT
右中对齐。
|
TOPCENTER
顶部居中对齐。
|
TOPLEFT
左上角对齐。
|
TOPRIGHT
右上角对齐。
|
限定符和类型 | 方法和说明 |
---|---|
static TextAlignment |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static TextAlignment[] |
values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
|
public static final TextAlignment BASELINECENTER
基准线居中对齐。
public static final TextAlignment BASELINELEFT
基准线左对齐。
public static final TextAlignment BASELINERIGHT
基准线右对齐。
public static final TextAlignment BOTTOMCENTER
底部居中对齐。
public static final TextAlignment BOTTOMLEFT
左下角对齐。
public static final TextAlignment BOTTOMRIGHT
右下角对齐。
public static final TextAlignment MIDDLECENTER
中心对齐。
public static final TextAlignment MIDDLELEFT
左中对齐。
public static final TextAlignment MIDDLERIGHT
右中对齐。
public static final TextAlignment TOPCENTER
顶部居中对齐。
public static final TextAlignment TOPLEFT
左上角对齐。
public static final TextAlignment TOPRIGHT
右上角对齐。
public static TextAlignment[] values()
for (TextAlignment c : TextAlignment.values()) System.out.println(c);
public static TextAlignment valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。