net.sf.jasperreports.engine.export
Class JRPrintServiceExporter

java.lang.Object
  extended bynet.sf.jasperreports.engine.JRAbstractExporter
      extended bynet.sf.jasperreports.engine.export.JRPrintServiceExporter
All Implemented Interfaces:
JRExporter, java.awt.print.Printable

public class JRPrintServiceExporter
extends JRAbstractExporter
implements java.awt.print.Printable

Version:
$Id: JRPrintServiceExporter.java,v 1.20 2005/07/19 14:16:56 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Field Summary
protected  boolean displayPageDialog
           
protected  boolean displayPrintDialog
           
protected  JRGraphics2DExporter exporter
           
protected  javax.print.attribute.PrintRequestAttributeSet printRequestAttributeSet
           
protected  javax.print.attribute.PrintServiceAttributeSet printServiceAttributeSet
           
protected  JRExportProgressMonitor progressMonitor
           
 
Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter
defaultFont, endPageIndex, globalOffsetX, globalOffsetY, isModeBatch, jasperPrint, jasperPrintList, parameters, startPageIndex, styledTextParser
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
JRPrintServiceExporter()
           
 
Method Summary
 void exportReport()
          Actually starts the export process.
 int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex)
           
 
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

exporter

protected JRGraphics2DExporter exporter

progressMonitor

protected JRExportProgressMonitor progressMonitor

printRequestAttributeSet

protected javax.print.attribute.PrintRequestAttributeSet printRequestAttributeSet

printServiceAttributeSet

protected javax.print.attribute.PrintServiceAttributeSet printServiceAttributeSet

displayPageDialog

protected boolean displayPageDialog

displayPrintDialog

protected boolean displayPrintDialog
Constructor Detail

JRPrintServiceExporter

public JRPrintServiceExporter()
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

print

public int print(java.awt.Graphics graphics,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
          throws java.awt.print.PrinterException
Specified by:
print in interface java.awt.print.Printable
Throws:
java.awt.print.PrinterException


© 2001-2005 JasperSoft Corporation www.jaspersoft.com