net.sf.jasperreports.engine.export
Class JRGraphics2DExporter

java.lang.Object
  extended bynet.sf.jasperreports.engine.JRAbstractExporter
      extended bynet.sf.jasperreports.engine.export.JRGraphics2DExporter
All Implemented Interfaces:
JRExporter

public class JRGraphics2DExporter
extends JRAbstractExporter

Exports a JasperReports document to a Graphics2D object. Since all font measurement and layout calculation during report filling is done using AWT, this is considered the perfect exporter, unlike the others, which are only approximations of the initial document.

As its name indicates, this exporter is special because it does not produce files or does not send character or binary data to an output stream.

Version:
$Id: JRGraphics2DExporter.java,v 1.42 2005/08/25 14:33:59 ionutned Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Field Summary
protected  java.awt.Graphics2D grx
           
protected  JRExportProgressMonitor progressMonitor
           
protected  TextRenderer textRenderer
           
protected  float zoom
           
 
Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter
defaultFont, endPageIndex, globalOffsetX, globalOffsetY, isModeBatch, jasperPrint, jasperPrintList, parameters, startPageIndex, styledTextParser
 
Constructor Summary
JRGraphics2DExporter()
           
 
Method Summary
protected  void exportBox(JRBox box, JRPrintElement element)
           
protected  void exportEllipse(JRPrintEllipse ellipse)
           
protected  void exportImage(JRPrintImage printImage)
           
protected  void exportLine(JRPrintLine line)
           
protected  void exportPage(JRPrintPage page)
           
protected  void exportRectangle(JRPrintRectangle rectangle)
           
 void exportReport()
          Actually starts the export process.
 void exportReportToGraphics2D()
           
protected  void exportText(JRPrintText text)
           
 
Methods inherited from class net.sf.jasperreports.engine.JRAbstractExporter
getDefaultFont, getParameter, getParameters, getStyledText, setInput, setOffset, setOutput, setPageRange, setParameter, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grx

protected java.awt.Graphics2D grx

progressMonitor

protected JRExportProgressMonitor progressMonitor

zoom

protected float zoom

textRenderer

protected TextRenderer textRenderer
Constructor Detail

JRGraphics2DExporter

public JRGraphics2DExporter()
                     throws JRException
Method Detail

exportReport

public void exportReport()
                  throws JRException
Description copied from interface: JRExporter
Actually starts the export process.

Specified by:
exportReport in interface JRExporter
Specified by:
exportReport in class JRAbstractExporter
Throws:
JRException

exportReportToGraphics2D

public void exportReportToGraphics2D()
                              throws JRException
Throws:
JRException

exportPage

protected void exportPage(JRPrintPage page)
                   throws JRException
Throws:
JRException

exportLine

protected void exportLine(JRPrintLine line)

exportRectangle

protected void exportRectangle(JRPrintRectangle rectangle)

exportEllipse

protected void exportEllipse(JRPrintEllipse ellipse)

exportImage

protected void exportImage(JRPrintImage printImage)
                    throws JRException
Throws:
JRException

exportText

protected void exportText(JRPrintText text)

exportBox

protected void exportBox(JRBox box,
                         JRPrintElement element)


© 2001-2005 JasperSoft Corporation www.jaspersoft.com