org.jfree.report.modules.gui.swing.printing
public class PrintReportProcessor extends PaginatingReportProcessor implements java.awt.print.Pageable
Constructor and Description |
---|
PrintReportProcessor(ReportJob job) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected org.jfree.layouting.modules.output.graphics.GraphicsOutputProcessor |
getGraphicsProcessor() |
protected ReportJob |
getJob() |
int |
getNumberOfPages()
Returns the number of pages in the set.
|
org.jfree.layouting.modules.output.graphics.PageDrawable |
getPageDrawable(int pageIndex) |
java.awt.print.PageFormat |
getPageFormat(int pageIndex)
Returns the
PageFormat of the page specified by
pageIndex . |
java.awt.print.Printable |
getPrintable(int pageIndex)
Returns the
Printable instance responsible for rendering the
page specified by pageIndex . |
boolean |
isError() |
boolean |
paginate() |
protected org.jfree.layouting.modules.output.graphics.PageDrawable |
processPage(int page) |
void |
processReport(ReportJob job)
Throws an unsupported operation exception.
|
createTarget, getLogicalPageState, getOutputProcessor, getPhysicalPageState, isPaginated, prepareReportProcessing, processPage, processPaginationRun
createFlowControler, createReportContext, processReportRun
public PrintReportProcessor(ReportJob job)
protected org.jfree.layouting.modules.output.graphics.GraphicsOutputProcessor getGraphicsProcessor()
public boolean isError()
protected ReportJob getJob()
public void close()
protected org.jfree.layouting.modules.output.graphics.PageDrawable processPage(int page) throws ReportDataFactoryException, DataSourceException, ReportProcessingException, org.jfree.layouting.StateException
ReportDataFactoryException
DataSourceException
ReportProcessingException
org.jfree.layouting.StateException
public int getNumberOfPages()
Pageable
implementations
return the true number of pages rather than the UNKNOWN_NUMBER_OF_PAGES
constant.getNumberOfPages
in interface java.awt.print.Pageable
Pageable
.public boolean paginate()
public java.awt.print.PageFormat getPageFormat(int pageIndex) throws java.lang.IndexOutOfBoundsException
PageFormat
of the page specified by
pageIndex
.getPageFormat
in interface java.awt.print.Pageable
pageIndex
- the zero based index of the page whose PageFormat
is being requestedPageFormat
describing the size and orientation.java.lang.IndexOutOfBoundsException
- if the Pageable
does not
contain the requested page.public java.awt.print.Printable getPrintable(int pageIndex) throws java.lang.IndexOutOfBoundsException
Printable
instance responsible for rendering the
page specified by pageIndex
.getPrintable
in interface java.awt.print.Pageable
pageIndex
- the zero based index of the page whose Printable
is being requestedPrintable
that renders the page.java.lang.IndexOutOfBoundsException
- if the Pageable
does not
contain the requested page.public org.jfree.layouting.modules.output.graphics.PageDrawable getPageDrawable(int pageIndex)
public final void processReport(ReportJob job)
processReport
in interface ReportProcessor
job
- java.lang.UnsupportedOperationException