public class PlainText
extends java.lang.Object
A block of text can contain multiple paragraphs which will be treated individually within the block placement.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PlainText.Line
An individual line of text.
|
(package private) static class |
PlainText.Paragraph
A block of text to be formatted as a whole.
|
(package private) static class |
PlainText.TextAttribute
Attribute keys and attribute values used for text handling.
|
(package private) static class |
PlainText.Word
An individual word.
|
Modifier and Type | Field and Description |
---|---|
private static float |
FONTSCALE |
private java.util.List<PlainText.Paragraph> |
paragraphs |
Constructor and Description |
---|
PlainText(java.util.List<java.lang.String> listValue)
Construct the text block from a list of values.
|
PlainText(java.lang.String textValue)
Construct the text block from a single value.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.util.List<PlainText.Paragraph> |
getParagraphs()
Get the list of paragraphs.
|
private static final float FONTSCALE
private final java.util.List<PlainText.Paragraph> paragraphs
public PlainText(java.lang.String textValue)
PlainText.Paragraph
when a new line character is
encountered.textValue
- the text block string.public PlainText(java.util.List<java.lang.String> listValue)
PlainText.Paragraph
.listValue
- the text block string.java.util.List<PlainText.Paragraph> getParagraphs()