public abstract class AbstractOutputProcessor extends java.lang.Object implements OutputProcessor
Modifier and Type | Field and Description |
---|---|
protected static int |
PROCESSING_CONTENT |
protected static int |
PROCESSING_GLOBAL_CONTENT |
protected static int |
PROCESSING_PAGES |
Constructor and Description |
---|
AbstractOutputProcessor(org.pentaho.reporting.libraries.base.config.Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
InputFeed |
createInputFeed(LayoutProcess layoutProcess) |
protected LogicalPageKey |
createLogicalPage(int width,
int height) |
ModelBuilder |
createModelBuilder(LayoutProcess layoutProcess)
The model builder normalizes the input and builds the Display-Model.
|
Normalizer |
createNormalizer(LayoutProcess layoutProcess)
Returns the content normalizer implementation for this OP.
|
org.pentaho.reporting.libraries.base.config.Configuration |
getConfiguration() |
DocumentContext |
getDocumentContext() |
LogicalPageKey |
getLogicalPage(int page) |
int |
getLogicalPageCount() |
int |
getPageCursor() |
protected int |
getProcessingState() |
boolean |
isContentGeneratable()
This flag indicates, whether the output processor has collected enough
information to start the content generation.
|
boolean |
isGlobalStateComputed()
This flag indicates, whether the global content has been computed.
|
boolean |
isPaginationFinished()
Checks, whether the 'processingFinished' event had been received at least
once.
|
void |
processContent(LogicalPageBox logicalPage) |
void |
processDocumentMetaData(DocumentContext documentContext) |
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 |
processingGlobalContentFinished() |
protected void |
processingPagesFinished() |
protected abstract void |
processPageContent(LogicalPageKey logicalPageKey,
LogicalPageBox logicalPage) |
void |
setPageCursor(int pageCursor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRenderer, getMetaData
protected static final int PROCESSING_GLOBAL_CONTENT
protected static final int PROCESSING_PAGES
protected static final int PROCESSING_CONTENT
public AbstractOutputProcessor(org.pentaho.reporting.libraries.base.config.Configuration configuration)
public boolean isPaginationFinished()
isPaginationFinished
in interface OutputProcessor
public void processingFinished()
processingFinished
in interface OutputProcessor
protected void processingContentFinished()
public DocumentContext getDocumentContext()
protected void processingPagesFinished()
protected void processingGlobalContentFinished()
public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
getConfiguration
in interface OutputProcessor
public InputFeed createInputFeed(LayoutProcess layoutProcess)
createInputFeed
in interface OutputProcessor
public Normalizer createNormalizer(LayoutProcess layoutProcess)
createNormalizer
in interface OutputProcessor
layoutProcess
- the layout process that governs all.public ModelBuilder createModelBuilder(LayoutProcess layoutProcess)
createModelBuilder
in interface OutputProcessor
layoutProcess
- the layout process that governs all.public int getLogicalPageCount()
getLogicalPageCount
in interface OutputProcessor
public LogicalPageKey getLogicalPage(int page)
getLogicalPage
in interface OutputProcessor
protected LogicalPageKey createLogicalPage(int width, int height)
public int getPageCursor()
getPageCursor
in interface OutputProcessor
public void setPageCursor(int pageCursor)
setPageCursor
in interface OutputProcessor
public boolean isGlobalStateComputed()
isGlobalStateComputed
in interface OutputProcessor
protected int getProcessingState()
public boolean isContentGeneratable()
isContentGeneratable
in interface OutputProcessor
public final void processContent(LogicalPageBox logicalPage)
processContent
in interface OutputProcessor
protected abstract void processPageContent(LogicalPageKey logicalPageKey, LogicalPageBox logicalPage)
public void processDocumentMetaData(DocumentContext documentContext)
processDocumentMetaData
in interface OutputProcessor