|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.gvt.renderer.BasicTextPainter
org.apache.batik.gvt.renderer.StrokingTextPainter
org.apache.fop.svg.PDFTextPainter
public class PDFTextPainter
Renders the attributed character iterator of a TextNode. This class draws the text directly into the PDFGraphics2D so that the text is not drawn using shapes which makes the PDF files larger. 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.batik.gvt.renderer.StrokingTextPainter |
---|
org.apache.batik.gvt.renderer.StrokingTextPainter.TextRun |
Nested classes/interfaces inherited from class org.apache.batik.gvt.renderer.BasicTextPainter |
---|
org.apache.batik.gvt.renderer.BasicTextPainter.BasicMark |
Field Summary |
---|
Fields inherited from class org.apache.batik.gvt.renderer.StrokingTextPainter |
---|
ADJUST_ALL, ADJUST_SPACING, ALT_GLYPH_HANDLER, ANCHOR_TYPE, BIDI_LEVEL, FLOW_PARAGRAPH, FLOW_REGIONS, GVT_FONT, GVT_FONTS, PAINT_INFO, singleton, TEXT_COMPOUND_ID, TEXTPATH, WRITING_MODE, WRITING_MODE_RTL, WRITING_MODE_TTB, XPOS, YPOS |
Fields inherited from class org.apache.batik.gvt.renderer.BasicTextPainter |
---|
aaOffFontRenderContext, fontRenderContext |
Constructor Summary | |
---|---|
PDFTextPainter(FontInfo fi)
Create a new PDF text painter with the given font information. |
Method Summary | |
---|---|
protected void |
paintTextRuns(java.util.List textRuns,
java.awt.Graphics2D g2d)
|
Methods inherited from class org.apache.batik.gvt.renderer.StrokingTextPainter |
---|
adjustChunkOffsets, computeTextRuns, createModifiedACIForFontMatching, getBounds2D, getDecorationOutline, getDecorationStrokeOutline, getHighlightShape, getInstance, getMark, getOutline, getSelected, getTextChunk, getTextChunkACIs, getTextRuns, hitTest, paint, paintDecorations, printAttrs, selectFirst, selectLast |
Methods inherited from class org.apache.batik.gvt.renderer.BasicTextPainter |
---|
getGeometryBounds, getTextLayoutFactory, selectAt, selectTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFTextPainter(FontInfo fi)
fi
- the font infoMethod Detail |
---|
protected void paintTextRuns(java.util.List textRuns, java.awt.Graphics2D g2d)
paintTextRuns
in class org.apache.batik.gvt.renderer.StrokingTextPainter
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |