Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Nested Class Summary
`static class` | `TextPainter.TextElement`

Constructor Summary
`TextPainter(TextShape shape)`

Method Summary
`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)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TextPainter

    public TextPainter(TextShape shape)

Method Detail

### 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD