public static enum TextAlign.Type extends java.lang.Enum<TextAlign.Type>
Enum Constant and Description |
---|
center
Centers the text
|
inherit
Specifies that the value of the text-align property should be
inherited from the parent element
|
justify
Stretches the lines so that each line has equal width (like in
newspapers and magazines)
|
left
Aligns the text to the left
|
right
Aligns the text to the right
|
Modifier and Type | Method and Description |
---|---|
static TextAlign.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextAlign.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAlign.Type left
public static final TextAlign.Type right
public static final TextAlign.Type center
public static final TextAlign.Type justify
public static final TextAlign.Type inherit
public static TextAlign.Type[] values()
for (TextAlign.Type c : TextAlign.Type.values()) System.out.println(c);
public static TextAlign.Type 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 null