public final class TextPainter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TextPainter.TextElement |
Modifier and Type | Field and 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 and Description |
---|
TextPainter(TextShape shape) |
Modifier and Type | Method and Description |
---|---|
AttributedString |
getAttributedString(TextRun txrun)
Convert the underlying set of rich text runs into java.text.AttributedString
|
TextPainter.TextElement[] |
getTextElements(float textWidth,
FontRenderContext frc) |
void |
paint(Graphics2D graphics) |
protected POILogger logger
protected static final char DEFAULT_BULLET_CHAR
protected TextShape _shape
public TextPainter(TextShape shape)
public AttributedString getAttributedString(TextRun txrun)
public void paint(Graphics2D graphics)
public TextPainter.TextElement[] getTextElements(float textWidth, FontRenderContext frc)
Copyright © 2020. All rights reserved.