public abstract class AbstractOutputProcessor extends Object implements OutputProcessor
Modifier and Type | Field and Description |
---|---|
protected static int |
PROCESSING_CONTENT |
protected static int |
PROCESSING_PAGES |
Modifier | Constructor and Description |
---|---|
protected |
AbstractOutputProcessor() |
Modifier and Type | Method and Description |
---|---|
protected LogicalPageKey |
createLogicalPage(int width,
int height) |
LogicalPageKey |
getLogicalPage(int page) |
int |
getLogicalPageCount() |
int |
getPageCursor() |
int |
getPhysicalPageCount() |
protected long |
getStartTime() |
protected boolean |
isContentGeneratable()
This flag indicates, whether the output processor has collected enough information to start the content generation.
|
boolean |
isNeedAlignedPage() |
boolean |
isPaginationFinished()
Checks whether the 'processingFinished' event had been received at least once.
|
void |
processContent(LogicalPageBox logicalPage)
A call-back that passes a layouted pagebox to the output processor.
|
protected void |
processingContentFinished() |
void |
processingFinished()
Notifies the output processor, that the processing has been finished and that the input-feed received the last
event.
|
protected void |
processingPagesFinished() |
void |
processingStarted(ReportDefinition report,
ProcessingContext processingContext) |
protected abstract void |
processPageContent(LogicalPageKey logicalPageKey,
LogicalPageBox logicalPage) |
protected void |
processPaginationContent(LogicalPageKey logicalPageKey,
LogicalPageBox logicalPage) |
void |
processRecomputedContent(LogicalPageBox pageBox) |
void |
setPageCursor(int pageCursor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData
protected static final int PROCESSING_PAGES
protected static final int PROCESSING_CONTENT
public void processingStarted(ReportDefinition report, ProcessingContext processingContext)
processingStarted
in interface OutputProcessor
protected long getStartTime()
public final int getLogicalPageCount()
getLogicalPageCount
in interface OutputProcessor
public final LogicalPageKey getLogicalPage(int page)
getLogicalPage
in interface OutputProcessor
public final boolean isPaginationFinished()
isPaginationFinished
in interface OutputProcessor
public final void processingFinished()
processingFinished
in interface OutputProcessor
protected void processingContentFinished()
protected void processingPagesFinished()
protected LogicalPageKey createLogicalPage(int width, int height)
public final int getPageCursor()
getPageCursor
in interface OutputProcessor
public final void setPageCursor(int pageCursor)
setPageCursor
in interface OutputProcessor
protected boolean isContentGeneratable()
public void processRecomputedContent(LogicalPageBox pageBox) throws ContentProcessingException
processRecomputedContent
in interface OutputProcessor
ContentProcessingException
public final void processContent(LogicalPageBox logicalPage) throws ContentProcessingException
OutputProcessor
processContent
in interface OutputProcessor
ContentProcessingException
public boolean isNeedAlignedPage()
isNeedAlignedPage
in interface OutputProcessor
protected void processPaginationContent(LogicalPageKey logicalPageKey, LogicalPageBox logicalPage) throws ContentProcessingException
ContentProcessingException
protected abstract void processPageContent(LogicalPageKey logicalPageKey, LogicalPageBox logicalPage) throws ContentProcessingException
ContentProcessingException
public int getPhysicalPageCount()
getPhysicalPageCount
in interface OutputProcessor
Copyright © 2017 Hitachi Vantara. All rights reserved.