public class AFPTextPainter extends AbstractFOPTextPainter
TextNode
.
This class draws the text directly into the AFPGraphics2D so that
the text is not drawn using shapes.
If the text is simple enough to draw then it sets the font and calls
drawString. If the text is complex or the cannot be translated
into a simple drawString the StrokingTextPainter is used instead.log, PROXY_PAINTER
Constructor and Description |
---|
AFPTextPainter(FOPTextHandler nativeTextHandler)
Create a new text painter with the given font information.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isSupportedGraphics2D(java.awt.Graphics2D g2d)
Checks whether the Graphics2D is compatible with this text painter.
|
getBounds2D, getGeometryBounds, getHighlightShape, getMark, getOutline, getSelected, getText, paint, paintTextRun, paintTextRuns, selectAt, selectFirst, selectLast, selectTo
public AFPTextPainter(FOPTextHandler nativeTextHandler)
nativeTextHandler
- the NativeTextHandler instance used for text paintingprotected boolean isSupportedGraphics2D(java.awt.Graphics2D g2d)
isSupportedGraphics2D
in class AbstractFOPTextPainter
g2d
- the Graphics2D instance to checkCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.