A block of text can contain multiple paragraphs which will be treated individually within the block placement.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | PlainText.
An individual line of text. |
| pack-priv static class | PlainText.
A block of text to be formatted as a whole. |
| pack-priv static class | PlainText.
Attribute keys and attribute values used for text handling. |
| pack-priv static class | PlainText.
An individual word. |
| Modifier and Type | Field and Description |
|---|---|
| private static final float | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| FONTSCALE | back to summary |
|---|---|
| private static final float FONTSCALE | |
| paragraphs | back to summary |
|---|---|
| private final List<PlainText. | |
| PlainText | back to summary |
|---|---|
| public PlainText(String textValue) Construct the text block from a single value.
Constructs the text block from a single value splitting
into individual
| |
| PlainText | back to summary |
|---|---|
| public PlainText(List<String> listValue) Construct the text block from a list of values.
Constructs the text block from a list of values treating each
entry as an individual | |
| getParagraphs | back to summary |
|---|---|
| pack-priv List Get the list of paragraphs. | |
| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv List | |
| pack-priv void |
| lineWidth | back to summary |
|---|---|
| private float lineWidth | |
| words | back to summary |
|---|---|
| private final List<PlainText. | |
| Line | back to summary |
|---|---|
| pack-priv Line() | |
| addWord | back to summary |
|---|---|
| pack-priv void addWord(PlainText. | |
| calculateWidth | back to summary |
|---|---|
| pack-priv float calculateWidth(PDFont font, float fontSize) throws IOException | |
| getInterWordSpacing | back to summary |
|---|---|
| pack-priv float getInterWordSpacing(float width) | |
| getWidth | back to summary |
|---|---|
| pack-priv float getWidth() | |
| getWords | back to summary |
|---|---|
| pack-priv List | |
| setWidth | back to summary |
|---|---|
| pack-priv void setWidth(float width) | |
A block of text can contain multiple paragraphs which will be treated individually within the block placement.
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv List | |
| pack-priv String |
| textContent | back to summary |
|---|---|
| private final String textContent | |
| Paragraph | back to summary |
|---|---|
| pack-priv Paragraph(String text) | |
| getLines | back to summary |
|---|---|
| pack-priv List Break the paragraph into individual lines. | |
| getText | back to summary |
|---|---|
| pack-priv String getText() Get the paragraph text.
| |
java.awt.font.TextAttribute but
handled individually as to avoid a dependency on awt.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Hides java. |
| public static final AttributedCharacterIterator. | WIDTH
Attribute width of the text. |
| Access | Constructor and Description |
|---|---|
| protected |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. UID for serializing. | |
| WIDTH | back to summary |
|---|---|
| public static final AttributedCharacterIterator. Attribute width of the text. | |
| TextAttribute | back to summary |
|---|---|
| protected TextAttribute(String name) | |
| Modifier and Type | Field and Description |
|---|---|
| private AttributedString | |
| private final String |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv AttributedString | |
| pack-priv String | |
| pack-priv void |
| attributedString | back to summary |
|---|---|
| private AttributedString attributedString | |
| textContent | back to summary |
|---|---|
| private final String textContent | |
| Word | back to summary |
|---|---|
| pack-priv Word(String text) | |
| getAttributes | back to summary |
|---|---|
| pack-priv AttributedString getAttributes() | |
| getText | back to summary |
|---|---|
| pack-priv String getText() | |
| setAttributes | back to summary |
|---|---|
| pack-priv void setAttributes(AttributedString as) | |