org.jfree.layouting.output

Class ChainingOutputProcessor

public class ChainingOutputProcessor extends Object implements OutputProcessor

Creation-Date: 16.06.2006, 14:44:55

Author: Thomas Morgner

Constructor Summary
ChainingOutputProcessor(OutputProcessor outputProcessor)
Method Summary
InputFeedcreateInputFeed(LayoutProcess layoutProcess)
ModelBuildercreateModelBuilder(LayoutProcess layoutProcess)
The model builder normalizes the input and builds the Display-Model.
NormalizercreateNormalizer(LayoutProcess layoutProcess)
Returns the content normalizer implementation for this OP.
RenderercreateRenderer(LayoutProcess layoutProcess)
ConfigurationgetConfiguration()
LogicalPageKeygetLogicalPage(int page)
intgetLogicalPageCount()
OutputProcessorMetaDatagetMetaData()
intgetPageCursor()
booleanisContentGeneratable()
This flag indicates, whether the output processor has collected enough information to start the content generation.
booleanisGlobalStateComputed()
This flag indicates, whether the global content has been computed.
booleanisPaginationFinished()
Checks, whether the 'processingFinished' event had been received at least once.
voidprocessContent(LogicalPageBox logicalPage)
voidprocessDocumentMetaData(DocumentContext documentContext)
voidprocessingFinished()
Notifies the output processor, that the processing has been finished and that the input-feed received the last event.
voidsetPageCursor(int cursor)

Constructor Detail

ChainingOutputProcessor

public ChainingOutputProcessor(OutputProcessor outputProcessor)

Method Detail

createInputFeed

public InputFeed createInputFeed(LayoutProcess layoutProcess)

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.

Parameters: layoutProcess the layout process that governs all.

Returns: the created model builder.

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.

Parameters: layoutProcess the layout process that governs all.

Returns: the created content normalizer.

createRenderer

public Renderer createRenderer(LayoutProcess layoutProcess)

getConfiguration

public Configuration getConfiguration()

getLogicalPage

public LogicalPageKey getLogicalPage(int page)

getLogicalPageCount

public int getLogicalPageCount()

getMetaData

public OutputProcessorMetaData getMetaData()

getPageCursor

public int getPageCursor()

isContentGeneratable

public boolean isContentGeneratable()
This flag indicates, whether the output processor has collected enough information to start the content generation.

Returns:

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).

Returns: true, if the global state has been computed, false otherwise.

isPaginationFinished

public boolean isPaginationFinished()
Checks, whether the 'processingFinished' event had been received at least once.

Returns:

processContent

public void processContent(LogicalPageBox logicalPage)

processDocumentMetaData

public void processDocumentMetaData(DocumentContext documentContext)

processingFinished

public void processingFinished()
Notifies the output processor, that the processing has been finished and that the input-feed received the last event.

setPageCursor

public void setPageCursor(int cursor)