public enum CPDFTextAlignment extends java.lang.Enum<CPDFTextAlignment>
Enum Constant and Description |
---|
ALIGNMENT_CENTER
Center alignment
|
ALIGNMENT_LEFT
Left alignment
|
ALIGNMENT_RIGHT
Right alignment
|
ALIGNMENT_UNKNOWN
Unknown type
|
Modifier and Type | Field and Description |
---|---|
int |
id |
Modifier and Type | Method and Description |
---|---|
static CPDFTextAlignment |
valueOf(int id)
Returns an enumeration of text alignment according to the id value.
|
static CPDFTextAlignment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CPDFTextAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CPDFTextAlignment ALIGNMENT_UNKNOWN
public static final CPDFTextAlignment ALIGNMENT_LEFT
public static final CPDFTextAlignment ALIGNMENT_CENTER
public static final CPDFTextAlignment ALIGNMENT_RIGHT
public static CPDFTextAlignment[] values()
for (CPDFTextAlignment c : CPDFTextAlignment.values()) System.out.println(c);
public static CPDFTextAlignment 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 CPDFTextAlignment valueOf(int id)
id
- int value for the text alignment enumeration.