|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor
org.pentaho.reporting.engine.classic.core.modules.output.pageable.base.PageableReportProcessor
org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PrintReportProcessor
public class PrintReportProcessor
Creation-Date: 09.04.2007, 13:28:33
| Field Summary |
|---|
| Fields inherited from interface java.awt.print.Pageable |
|---|
UNKNOWN_NUMBER_OF_PAGES |
| Constructor Summary | |
|---|---|
PrintReportProcessor(MasterReport report)
|
|
| Method Summary | |
|---|---|
void |
addReportProgressListener(ReportProgressListener l)
Adds a repagination listener. |
void |
fireProcessingFinished()
|
void |
fireProcessingStarted()
|
Throwable |
getErrorReason()
Returns the last exception that has been caught. |
int |
getNumberOfPages()
Returns the number of pages in the set. |
PageDrawable |
getPageDrawable(int pageIndex)
Returns the PageDrawable instance responsible for rendering the page specified by
pageIndex. |
PageFormat |
getPageFormat(int pageIndex)
Returns the PageFormat of the page specified by pageIndex. |
Printable |
getPrintable(int pageIndex)
Returns the Printable instance responsible for rendering the page specified by
pageIndex. |
boolean |
isError()
Checks whether an error occured. |
boolean |
paginate()
Manually triggers the pagination. |
void |
processReport()
This method throws an UnsupportedOperationException as printing is a passive process and cannot be started here. |
void |
removeReportProgressListener(ReportProgressListener l)
Removes a repagination listener. |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor |
|---|
close, getConfiguration, getLogicalPageCount, getOutputProcessor, getPhysicalPageCount, isFullStreamingProcessor, isHandleInterruptedState, isPaginated, processPage, setFullStreamingProcessor, setHandleInterruptedState |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintReportProcessor(MasterReport report)
throws ReportProcessingException
ReportProcessingException| Method Detail |
|---|
public int getNumberOfPages()
Pageable implementations return the true number of pages rather than the UNKNOWN_NUMBER_OF_PAGES
constant.
getNumberOfPages in interface PageablePageable.public boolean paginate()
paginate in class AbstractReportProcessor
public PageFormat getPageFormat(int pageIndex)
throws IndexOutOfBoundsException
PageFormat of the page specified by pageIndex.
getPageFormat in interface PageablepageIndex - the zero based index of the page whose PageFormat is being requested
PageFormat describing the size and orientation.
IndexOutOfBoundsException - if the Pageable does not contain the requested page.
public Printable getPrintable(int pageIndex)
throws IndexOutOfBoundsException
Printable instance responsible for rendering the page specified by
pageIndex.
getPrintable in interface PageablepageIndex - the zero based index of the page whose Printable is being requested
Printable that renders the page.
IndexOutOfBoundsException - if the Pageable does not contain the requested page.public PageDrawable getPageDrawable(int pageIndex)
PageDrawable instance responsible for rendering the page specified by
pageIndex.
pageIndex - the zero based index of the page whose Printable is being requested
PageDrawable that renders the page.
IndexOutOfBoundsException - if the Pageable does not contain the requested page.public boolean isError()
public void processReport()
throws ReportProcessingException
processReport in interface ReportProcessorprocessReport in class AbstractReportProcessorReportProcessingException
EmptyReportExceptionpublic void fireProcessingStarted()
public void fireProcessingFinished()
public void addReportProgressListener(ReportProgressListener l)
addReportProgressListener in interface ReportProcessoraddReportProgressListener in class AbstractReportProcessorl - the listener.public void removeReportProgressListener(ReportProgressListener l)
removeReportProgressListener in interface ReportProcessorremoveReportProgressListener in class AbstractReportProcessorl - the listener.public Throwable getErrorReason()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||