public final class TextPainter
extends java.lang.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 |
---|---|
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 © 2005-2010 Potix Corporation. All Rights Reserved.