| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | DrawTextParagraph.
Defines an attribute used for storing the hyperlink associated with some renderable text. |
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected DrawTextFragment | |
| protected boolean | |
| public static final DrawTextParagraph. | HYPERLINK_HREF
Keys for passing hyperlinks to the graphics context |
| public static final DrawTextParagraph. | |
| protected List | |
| private static final Logger | |
| protected TextParagraph | |
| protected String | |
| pack-priv double | |
| pack-priv double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyTransform(Graphics2D
the graphics whose transform matrix will be modified graphics)Implements org. Apply 2-D transforms before drawing this shape. |
| protected void | breakText(Graphics2D
The drawing context for computing text-lengths. graphics)break text into lines, each representing a line of text that fits in the wrapping width |
| public void | draw(Graphics2D
the graphics to draw into graphics)Implements org. Draw this shape into the supplied canvas |
| public void | drawContent(Graphics2D
the graphics to draw into graphics)Implements org. draw any content within this shape (image, text, etc.). |
| protected List | |
| protected DrawTextFragment | |
| public float | |
| public float | |
| public float | |
| private PlaceableShape | |
| protected String | |
| public String | |
| protected double | Returns: wrapping width in pointswhether the first line is breaking firstLine, Graphics2D graphics)Returns wrapping width to break lines in this paragraph |
| public double | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| private static int | |
| private void | processGlyphs(Graphics2D graphics, DrawFontManager dfm, List<DrawTextParagraph.
Processing the glyphs is done in two steps:
|
| public void | setAutoNumberingIdx(int
the auto numbering index index)Sets the auto numbering index of the handled paragraph |
| protected void | |
| public void | |
| private String |
| autoNbrIdx | back to summary |
|---|---|
| protected int autoNbrIdx | |
| bullet | back to summary |
|---|---|
| protected DrawTextFragment bullet | |
| firstParagraph | back to summary |
|---|---|
| protected boolean firstParagraph | |
| HYPERLINK_HREF | back to summary |
|---|---|
| public static final DrawTextParagraph. Keys for passing hyperlinks to the graphics context | |
| HYPERLINK_LABEL | back to summary |
|---|---|
| public static final DrawTextParagraph. | |
| lines | back to summary |
|---|---|
| protected List<DrawTextFragment> lines | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| paragraph | back to summary |
|---|---|
| protected TextParagraph<?, ?, ?> paragraph | |
| rawText | back to summary |
|---|---|
| protected String rawText | |
| x | back to summary |
|---|---|
| pack-priv double x | |
| y | back to summary |
|---|---|
| pack-priv double y | |
| DrawTextParagraph | back to summary |
|---|---|
| public DrawTextParagraph(TextParagraph<?, ?, ?> paragraph) | |
| applyTransform | back to summary |
|---|---|
| public void applyTransform(Graphics2D graphics) Implements org. Doc from org. Apply 2-D transforms before drawing this shape. This includes rotation and flipping.
| |
| breakText | back to summary |
|---|---|
| protected void breakText(Graphics2D graphics) break text into lines, each representing a line of text that fits in the wrapping width
| |
| draw | back to summary |
|---|---|
| public void draw(Graphics2D graphics) Implements org. Doc from org. Draw this shape into the supplied canvas
| |
| drawContent | back to summary |
|---|---|
| public void drawContent(Graphics2D graphics) Implements org. Doc from org. draw any content within this shape (image, text, etc.).
| |
| getAttributedString | back to summary |
|---|---|
| protected List | |
| getBullet | back to summary |
|---|---|
| protected DrawTextFragment getBullet(Graphics2D graphics, AttributedCharacterIterator firstLineAttr) | |
| getFirstLineHeight | back to summary |
|---|---|
| public float getFirstLineHeight() | |
| getFirstLineLeading | back to summary |
|---|---|
| public float getFirstLineLeading() | |
| getLastLineHeight | back to summary |
|---|---|
| public float getLastLineHeight() | |
| getParagraphShape | back to summary |
|---|---|
| private PlaceableShape Helper method for paint style relative to bounds, e.g. gradient paint | |
| getRenderableText | back to summary |
|---|---|
| protected String getRenderableText(Graphics2D graphics, TextRun tr) | |
| getRenderableText | back to summary |
|---|---|
public String getRenderableText(final TextRun tr)
| |
| getWrappingWidth | back to summary |
|---|---|
| protected double getWrappingWidth(boolean firstLine, Graphics2D graphics) Returns wrapping width to break lines in this paragraph
| |
| getY | back to summary |
|---|---|
| public double getY() | |
| isEmptyParagraph | back to summary |
|---|---|
| public boolean isEmptyParagraph() | |
| isFirstParagraph | back to summary |
|---|---|
| protected boolean isFirstParagraph() | |
| isHSLF | back to summary |
|---|---|
protected boolean isHSLF()
| |
| nextPart | back to summary |
|---|---|
| private static int nextPart(Font fontMapped, String runText, int beginPart, int endPart, boolean isDisplayed) | |
| processGlyphs | back to summary |
|---|---|
| private void processGlyphs(Graphics2D graphics, DrawFontManager dfm, List<DrawTextParagraph. Processing the glyphs is done in two steps:
| |
| setAutoNumberingIdx | back to summary |
|---|---|
| public void setAutoNumberingIdx(int index) Sets the auto numbering index of the handled paragraph
| |
| setFirstParagraph | back to summary |
|---|---|
| protected void setFirstParagraph(boolean firstParagraph) | |
| setPosition | back to summary |
|---|---|
| public void setPosition(double x, double y) | |
| tab2space | back to summary |
|---|---|
| private String tab2space(TextRun tr) Replace a tab with the effective number of white spaces. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv AttributedCharacterIterator. | |
| pack-priv int | |
| pack-priv int | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| pack-priv | AttributedStringData(AttributedCharacterIterator.
|
| attribute | back to summary |
|---|---|
| pack-priv AttributedCharacterIterator. | |
| beginIndex | back to summary |
|---|---|
| pack-priv int beginIndex | |
| endIndex | back to summary |
|---|---|
| pack-priv int endIndex | |
| value | back to summary |
|---|---|
| pack-priv Object value | |
| AttributedStringData | back to summary |
|---|---|
| pack-priv AttributedStringData(AttributedCharacterIterator. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | readResolve()
Overrides java. Resolves instances being deserialized to the predefined constants. |
| XlinkAttribute | back to summary |
|---|---|
| pack-priv XlinkAttribute(String name) | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() throws InvalidObjectException Overrides java. Resolves instances being deserialized to the predefined constants.
| |