org.apache.poi.hslf.model
Class TextPainter
java.lang.Object
org.apache.poi.hslf.model.TextPainter
public final class TextPainter
- extends java.lang.Object
Paint text into java.awt.Graphics2D
- Author:
- Yegor Kozlov
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)
getTextElements
public TextPainter.TextElement[] getTextElements(float textWidth,
java.awt.font.FontRenderContext frc)
Copyright 2012 The Apache Software Foundation or
its licensors, as applicable.