public enum TextFormat extends Enum<TextFormat>
Options for text format.
| Enum Constant and Description |
|---|
DROPCAP
Use a dropped capital letter at the start of the paragraph.
|
DROPCAP_WITH_PADDING
Use a dropped capital letter at the start of the paragraph with padding for all lines.
|
FIRST_LINE
Indentation of the first line of the paragraph.
|
HANGING
A hanging paragraph, all but the first line with special indentation.
|
NONE
No special formatting.
|
| 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 TextFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextFormat NONE
No special formatting.
public static final TextFormat FIRST_LINE
Indentation of the first line of the paragraph.
public static final TextFormat HANGING
A hanging paragraph, all but the first line with special indentation.
public static final TextFormat DROPCAP
Use a dropped capital letter at the start of the paragraph.
public static final TextFormat DROPCAP_WITH_PADDING
Use a dropped capital letter at the start of the paragraph with padding for all lines.
protected int mapping
A mapping to the alignment options in Text_To_FormattedText.
public static TextFormat[] values()
for (TextFormat c : TextFormat.values()) System.out.println(c);
public static TextFormat 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.