Package net.sf.jasperreports.pdf
Class SimplePdfTextRenderer
- java.lang.Object
-
- net.sf.jasperreports.engine.export.AbstractTextRenderer
-
- net.sf.jasperreports.pdf.AbstractPdfTextRenderer
-
- net.sf.jasperreports.pdf.SimplePdfTextRenderer
-
public class SimplePdfTextRenderer extends AbstractPdfTextRenderer
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.export.AbstractTextRenderer
AbstractTextRenderer.TabSegment
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
legacyTextMeasuringFix
Deprecated.To be removed.-
Fields inherited from class net.sf.jasperreports.pdf.AbstractPdfTextRenderer
horizontalAlignment, leftOffsetFactor, pdfExporter, pdfProducer, rightOffsetFactor, tagHelper
-
Fields inherited from class net.sf.jasperreports.engine.export.AbstractTextRenderer
allText, bottomPadding, bulletChunk, bulletText, drawPosX, drawPosY, height, htmlListIndent, ignoreMissingFont, indentFirstLine, isFirstParagraph, isLastParagraph, isMaxHeightReached, jasperReportsContext, justifyLastLine, leftPadding, LINE_BREAK_FONT_RENDER_CONTEXT, lineHeight, propUtil, rightPadding, segmentIndex, segments, styledText, text, topPadding, verticalAlignOffset, width, x, y
-
-
Constructor Summary
Constructors Constructor Description SimplePdfTextRenderer(JasperReportsContext jasperReportsContext, boolean ignoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)
Deprecated.SimplePdfTextRenderer(JasperReportsContext jasperReportsContext, PdfTextRendererContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addActualText()
void
draw()
protected AttributedString
getAttributedString()
void
initialize(JRPdfExporter pdfExporter, PdfProducer pdfProducer, JRPdfExporterTagHelper tagHelper, JRPrintText text, JRStyledText styledText, int offsetX, int offsetY)
void
render()
protected void
renderParagraph(AttributedCharacterIterator allParagraphs, int paragraphStart, String paragraphText)
-
Methods inherited from class net.sf.jasperreports.pdf.AbstractPdfTextRenderer
getListWriter
-
Methods inherited from class net.sf.jasperreports.engine.export.AbstractTextRenderer
getBottomPadding, getFontRenderContext, getHeight, getLeftPadding, getLineHeight, getPlainText, getRightPadding, getStyledText, getTopPadding, getWidth, getX, getY, initialize
-
-
-
-
Constructor Detail
-
SimplePdfTextRenderer
public SimplePdfTextRenderer(JasperReportsContext jasperReportsContext, PdfTextRendererContext context)
-
SimplePdfTextRenderer
public SimplePdfTextRenderer(JasperReportsContext jasperReportsContext, boolean ignoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)
Deprecated.
-
-
Method Detail
-
initialize
public void initialize(JRPdfExporter pdfExporter, PdfProducer pdfProducer, JRPdfExporterTagHelper tagHelper, JRPrintText text, JRStyledText styledText, int offsetX, int offsetY)
- Overrides:
initialize
in classAbstractPdfTextRenderer
-
render
public void render()
- Overrides:
render
in classAbstractTextRenderer
-
renderParagraph
protected void renderParagraph(AttributedCharacterIterator allParagraphs, int paragraphStart, String paragraphText)
- Overrides:
renderParagraph
in classAbstractPdfTextRenderer
-
getAttributedString
protected AttributedString getAttributedString()
- Overrides:
getAttributedString
in classAbstractTextRenderer
-
draw
public void draw()
- Specified by:
draw
in classAbstractTextRenderer
-
addActualText
public boolean addActualText()
- Specified by:
addActualText
in classAbstractPdfTextRenderer
-
-