fop 0.95

org.apache.fop.svg
Class PDFTextPainter

java.lang.Object
  extended by org.apache.batik.gvt.renderer.BasicTextPainter
      extended by org.apache.batik.gvt.renderer.StrokingTextPainter
          extended by org.apache.fop.svg.PDFTextPainter
All Implemented Interfaces:
org.apache.batik.gvt.TextPainter
Direct Known Subclasses:
PDFFlowExtTextPainter, PDFFlowTextPainter

public class PDFTextPainter
extends org.apache.batik.gvt.renderer.StrokingTextPainter

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.

Version:
$Id: PDFTextPainter.java 592016 2007-11-05 14:34:18Z vhennebert $

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

PDFTextPainter

public PDFTextPainter(FontInfo fi)
Create a new PDF text painter with the given font information.

Parameters:
fi - the font info
Method Detail

paintTextRuns

protected void paintTextRuns(java.util.List textRuns,
                             java.awt.Graphics2D g2d)

Overrides:
paintTextRuns in class org.apache.batik.gvt.renderer.StrokingTextPainter

fop 0.95

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.