public enum VerticalAlignment extends java.lang.Enum<VerticalAlignment>
Enum Constant and Description |
---|
BOTTOM
The vertical alignment is aligned-to-bottom.
|
CENTER
The vertical alignment is centered across the height of the cell.
|
DISTRIBUTED
When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top
|
JUSTIFY
When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top and bottom margins.
|
TOP
The vertical alignment is aligned-to-top.
|
Modifier and Type | Method and Description |
---|---|
static VerticalAlignment |
forInt(int code) |
short |
getCode() |
static VerticalAlignment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static VerticalAlignment[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final VerticalAlignment TOP
public static final VerticalAlignment CENTER
public static final VerticalAlignment BOTTOM
public static final VerticalAlignment JUSTIFY
When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top and bottom margins.
When text direction is vertical: similar behavior as horizontal justification. The alignment is justified (flush top and bottom in this case). For each line of text, each line of the wrapped text in a cell is aligned to the top and bottom (except the last line). If no single line of text wraps in the cell, then the text is not justified.
(当文本方向为水平时:文本行的垂直对齐方式是垂直分布的,其中单元格内的每一行文本均匀分布在单元格的高度上,上下边缘齐平。当文本方向为垂直时:与水平对齐类似的行为。对齐是合理的(在这种情况下,顶部和底部齐平)。对于每一行文本,单元格中的每一行换行文本都与顶部和底部对齐(最后一行除外)。如果单元格中没有单行文本换行,则文本不对齐。)public static final VerticalAlignment DISTRIBUTED
When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top
When text direction is vertical: behaves exactly as distributed horizontal alignment. The first words in a line of text (appearing at the top of the cell) are flush with the top edge of the cell, and the last words of a line of text are flush with the bottom edge of the cell, and the line of text is distributed evenly from top to bottom.
(文本方向为水平时:文本行的垂直对齐方式为垂直分布,其中单元格内的每一行文本均匀分布在单元格的高度上,顶部齐平 当文本方向为垂直时:与分布式水平对齐方式完全相同.一行文本中的第一个单词(出现在单元格顶部)与单元格的顶部边缘齐平,一行文本的最后一个单词与单元格的底部边缘齐平,并且文本从上到下均匀分布。)public static VerticalAlignment[] values()
for (VerticalAlignment c : VerticalAlignment.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (VerticalAlignment c : VerticalAlignment.values()) System.out.println(c);)
public static VerticalAlignment valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
public short getCode()
public static VerticalAlignment forInt(int code)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.