Package org.jfree.layouting.output
Class ChainingOutputProcessor
- java.lang.Object
-
- org.jfree.layouting.output.ChainingOutputProcessor
-
- All Implemented Interfaces:
OutputProcessor
public class ChainingOutputProcessor extends java.lang.Object implements OutputProcessor
Creation-Date: 16.06.2006, 14:44:55- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description ChainingOutputProcessor(OutputProcessor outputProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputFeed
createInputFeed(LayoutProcess layoutProcess)
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.Renderer
createRenderer(LayoutProcess layoutProcess)
org.pentaho.reporting.libraries.base.config.Configuration
getConfiguration()
LogicalPageKey
getLogicalPage(int page)
int
getLogicalPageCount()
OutputProcessorMetaData
getMetaData()
int
getPageCursor()
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)
void
processingFinished()
Notifies the output processor, that the processing has been finished and that the input-feed received the last event.void
setPageCursor(int cursor)
-
-
-
Constructor Detail
-
ChainingOutputProcessor
public ChainingOutputProcessor(OutputProcessor outputProcessor)
-
-
Method Detail
-
createInputFeed
public InputFeed createInputFeed(LayoutProcess layoutProcess)
- Specified by:
createInputFeed
in interfaceOutputProcessor
-
getMetaData
public OutputProcessorMetaData getMetaData()
- Specified by:
getMetaData
in interfaceOutputProcessor
-
createNormalizer
public Normalizer createNormalizer(LayoutProcess layoutProcess)
Returns the content normalizer implementation for this OP. The content normalizer is responsible for resolving the styles and for initiating the display model building.- Specified by:
createNormalizer
in interfaceOutputProcessor
- Parameters:
layoutProcess
- the layout process that governs all.- Returns:
- the created content normalizer.
-
createModelBuilder
public ModelBuilder createModelBuilder(LayoutProcess layoutProcess)
The model builder normalizes the input and builds the Display-Model. The DisplayModel enriches and normalizes the logical document model so that it is better suited for rendering.- Specified by:
createModelBuilder
in interfaceOutputProcessor
- Parameters:
layoutProcess
- the layout process that governs all.- Returns:
- the created model builder.
-
createRenderer
public Renderer createRenderer(LayoutProcess layoutProcess)
- Specified by:
createRenderer
in interfaceOutputProcessor
-
processContent
public void processContent(LogicalPageBox logicalPage)
- Specified by:
processContent
in interfaceOutputProcessor
-
processingFinished
public void processingFinished()
Notifies the output processor, that the processing has been finished and that the input-feed received the last event.- Specified by:
processingFinished
in interfaceOutputProcessor
-
isGlobalStateComputed
public boolean isGlobalStateComputed()
This flag indicates, whether the global content has been computed. Global content consists of global counters (except the pages counter) and derived information like table of contents, the global directory of images or tables etc. The global state must be computed before paginating can be attempted (if the output target is paginating at all).- Specified by:
isGlobalStateComputed
in interfaceOutputProcessor
- Returns:
- true, if the global state has been computed, false otherwise.
-
isContentGeneratable
public boolean isContentGeneratable()
This flag indicates, whether the output processor has collected enough information to start the content generation.- Specified by:
isContentGeneratable
in interfaceOutputProcessor
- Returns:
-
getConfiguration
public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
- Specified by:
getConfiguration
in interfaceOutputProcessor
-
getLogicalPageCount
public int getLogicalPageCount()
- Specified by:
getLogicalPageCount
in interfaceOutputProcessor
-
getLogicalPage
public LogicalPageKey getLogicalPage(int page)
- Specified by:
getLogicalPage
in interfaceOutputProcessor
-
setPageCursor
public void setPageCursor(int cursor)
- Specified by:
setPageCursor
in interfaceOutputProcessor
-
getPageCursor
public int getPageCursor()
- Specified by:
getPageCursor
in interfaceOutputProcessor
-
isPaginationFinished
public boolean isPaginationFinished()
Checks, whether the 'processingFinished' event had been received at least once.- Specified by:
isPaginationFinished
in interfaceOutputProcessor
- Returns:
-
processDocumentMetaData
public void processDocumentMetaData(DocumentContext documentContext)
- Specified by:
processDocumentMetaData
in interfaceOutputProcessor
-
-