public final class TextPainter
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
TextPainter.TextElement |
Modifier and Type | Field | Description |
---|---|---|
protected TextShape |
_shape |
|
protected static char |
DEFAULT_BULLET_CHAR |
Display unicode square if a bullet char can't be displayed,
for example, if Wingdings font is used.
|
protected POILogger |
logger |
Constructor | Description |
---|---|
TextPainter(TextShape shape) |
Modifier and Type | Method | Description |
---|---|---|
java.text.AttributedString |
getAttributedString(TextRun txrun) |
Convert the underlying set of rich text runs into java.text.AttributedString
|
TextPainter.TextElement[] |
getTextElements(float textWidth,
java.awt.font.FontRenderContext frc) |
|
void |
paint(java.awt.Graphics2D graphics) |
protected POILogger logger
protected static final char DEFAULT_BULLET_CHAR
protected TextShape _shape
public TextPainter(TextShape shape)
public java.text.AttributedString getAttributedString(TextRun txrun)
public void paint(java.awt.Graphics2D graphics)
public TextPainter.TextElement[] getTextElements(float textWidth, java.awt.font.FontRenderContext frc)
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.