public enum TextAlignment extends Enum<TextAlignment>
Options for text alignment.
| Enum Constant and Description |
|---|
CENTER
Option for paragraph alignment center.
|
JUSTIFIED
Option for a justified alignment.
|
JUSTIFIED_LEFT
Option for a justified alignment, last line left left aligned.
|
JUSTIFIED_RIGHT
Option for a justified alignment, last line right aligned.
|
LEFT
Option for paragraph alignment left.
|
RIGHT
Option for paragraph alignment right.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
mapping
A mapping to the alignment options in
Text_To_FormattedText. |
| Modifier and Type | Method and Description |
|---|---|
int |
getMapping()
Returns a mapping to the alignment options defined in
Text_To_FormattedText. |
static TextAlignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAlignment JUSTIFIED
Option for a justified alignment.
public static final TextAlignment JUSTIFIED_RIGHT
Option for a justified alignment, last line right aligned.
public static final TextAlignment JUSTIFIED_LEFT
Option for a justified alignment, last line left left aligned.
public static final TextAlignment LEFT
Option for paragraph alignment left.
public static final TextAlignment CENTER
Option for paragraph alignment center.
public static final TextAlignment RIGHT
Option for paragraph alignment right.
protected int mapping
A mapping to the alignment options in Text_To_FormattedText.
public static TextAlignment[] values()
for (TextAlignment c : TextAlignment.values()) System.out.println(c);
public static TextAlignment valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getMapping()
Returns a mapping to the alignment options defined in Text_To_FormattedText.
Copyright © 2016–2017. All rights reserved.