org.jfree.layouting.normalizer.generator

Interface ContentGenerator

public interface ContentGenerator extends StatefullComponent

The content generator is the third stage content processor. This part is responsible to process the generated display model and to prepare it for rendering it to the output medium.

In the simplest case, the content generator will be able to pass the display model without any changes. In the more complicated cases, the display model needs to be flattened (as text processors cannot contain paragraphs inside other paragraphs, for instance) before it can be rendered.

Method Summary
voidaddContent(LayoutContext node, ContentToken contentToken)
voidaddPassThroughContent(LayoutContext node, ContentToken token)
voidfinishedBlock()
voidfinishedDocument()
Receives notification, that a new flow has started.
voidfinishedFlow()
voidfinishedInline()
voidfinishedMarker()
voidfinishedPassThrough()
voidfinishedRootInline()
voidfinishedTable()
voidfinishedTableCaption()
voidfinishedTableCell()
voidfinishedTableColumn()
voidfinishedTableColumnGroup()
voidfinishedTableRow()
voidfinishedTableSection()
RenderergetRenderer()
voidhandlePageBreak(PageContext pageContext)
This event handler is triggered by 'LayoutProcess.pageBreakEncountered()'.
voidstartedBlock(LayoutContext element)
voidstartedDocument(PageContext pageContext)
Receives the information, that the document processing has been started.
voidstartedFlow(LayoutContext element)
voidstartedInline(LayoutContext element)
voidstartedMarker(LayoutContext element)
voidstartedPassThrough(LayoutContext element)
voidstartedRootInline(LayoutContext element)
voidstartedTable(LayoutContext element)
voidstartedTableCaption(LayoutContext context)
voidstartedTableCell(LayoutContext element)
voidstartedTableColumn(LayoutContext element)
voidstartedTableColumnGroup(LayoutContext element)
voidstartedTableRow(LayoutContext element)
voidstartedTableSection(LayoutContext element)

Method Detail

addContent

public void addContent(LayoutContext node, ContentToken contentToken)

addPassThroughContent

public void addPassThroughContent(LayoutContext node, ContentToken token)

finishedBlock

public void finishedBlock()

finishedDocument

public void finishedDocument()
Receives notification, that a new flow has started. A new flow is started for each flowing or absolutly positioned element.

Parameters: box

finishedFlow

public void finishedFlow()

finishedInline

public void finishedInline()

finishedMarker

public void finishedMarker()

finishedPassThrough

public void finishedPassThrough()

finishedRootInline

public void finishedRootInline()

finishedTable

public void finishedTable()

finishedTableCaption

public void finishedTableCaption()

finishedTableCell

public void finishedTableCell()

finishedTableColumn

public void finishedTableColumn()

finishedTableColumnGroup

public void finishedTableColumnGroup()

finishedTableRow

public void finishedTableRow()

finishedTableSection

public void finishedTableSection()

getRenderer

public Renderer getRenderer()

handlePageBreak

public void handlePageBreak(PageContext pageContext)
This event handler is triggered by 'LayoutProcess.pageBreakEncountered()'.

Parameters: pageContext

startedBlock

public void startedBlock(LayoutContext element)

startedDocument

public void startedDocument(PageContext pageContext)
Receives the information, that the document processing has been started. This is fired only once.

Parameters: pageContext the page context for the default page.

startedFlow

public void startedFlow(LayoutContext element)

startedInline

public void startedInline(LayoutContext element)

startedMarker

public void startedMarker(LayoutContext element)

startedPassThrough

public void startedPassThrough(LayoutContext element)

startedRootInline

public void startedRootInline(LayoutContext element)

startedTable

public void startedTable(LayoutContext element)

startedTableCaption

public void startedTableCaption(LayoutContext context)

startedTableCell

public void startedTableCell(LayoutContext element)

startedTableColumn

public void startedTableColumn(LayoutContext element)

startedTableColumnGroup

public void startedTableColumnGroup(LayoutContext element)

startedTableRow

public void startedTableRow(LayoutContext element)

startedTableSection

public void startedTableSection(LayoutContext element)