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, processPaginationRuncreateFlowControler, createReportContext, processReportRunpublic 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
ReportDataFactoryExceptionDataSourceExceptionReportProcessingExceptionorg.jfree.layouting.StateExceptionpublic int getNumberOfPages()
Pageable implementations
return the true number of pages rather than the UNKNOWN_NUMBER_OF_PAGES
constant.getNumberOfPages in interface java.awt.print.PageablePageable.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.PageablepageIndex - 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.PageablepageIndex - 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 ReportProcessorjob - java.lang.UnsupportedOperationException