org.apache.poi.hslf.model
Class TextPainter
java.lang.Object
org.apache.poi.hslf.model.TextPainter
public class TextPainter
- extends java.lang.Object
Paint text into java.awt.Graphics2D
- Author:
- Yegor Kozlov
Method Summary |
java.text.AttributedString |
getAttributedString(TextRun txrun)
Convert the underlying set of rich text runs into java.text.AttributedString |
void |
paint(java.awt.Graphics2D graphics)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected POILogger logger
DEFAULT_BULLET_CHAR
protected static final char DEFAULT_BULLET_CHAR
- Display unicode square if a bullet char can't be displayed,
for example, if Wingdings font is used.
TODO: map Wingdngs and Symbol to unicode Arial
- See Also:
- Constant Field Values
_shape
protected TextShape _shape
TextPainter
public TextPainter(TextShape shape)
getAttributedString
public java.text.AttributedString getAttributedString(TextRun txrun)
- Convert the underlying set of rich text runs into java.text.AttributedString
paint
public void paint(java.awt.Graphics2D graphics)
Copyright 2008 The Apache Software Foundation or
its licensors, as applicable.