org.jfree.layouting.renderer

Interface Renderer

public interface Renderer extends StatefullComponent

The renderer is the last step in the predefined processing chain. The renderer computes the layout according to the style rules given in the elements and the inherent limitations of the output targets.

Renderers depend heavily on a correct input model - at this point no model transformation should be done at all (except, maybe, inserting new lineboxes where needed).

Contents for the page or special areas (@footnote, @endnote) are forwarded immediatly.

Author: Thomas Morgner

Method Summary
voidaddContent(LayoutContext context, ContentToken content)
voidaddPassThroughContent(LayoutContext context, ContentToken content)
voidfinishedBlock()
voidfinishedDocument()
voidfinishedFlow()
voidfinishedInline()
voidfinishedMarker()
voidfinishedPassThrough()
voidfinishedRootInline()
voidfinishedTable()
voidfinishedTableCaption()
voidfinishedTableCell()
voidfinishedTableColumn()
voidfinishedTableColumnGroup()
voidfinishedTableRow()
voidfinishedTableSection()
voidhandlePageBreak(PageContext pageContext)
A call-back that informs the renderer, that a new page must be started.
voidstartedBlock(LayoutContext context)
voidstartedDocument(PageContext pageContext)
Starts the document and initalizes the default page context.
voidstartedFlow(LayoutContext context)
Starts a floating, absolute or static element.
voidstartedInline(LayoutContext context)
voidstartedMarker(LayoutContext context)
voidstartedPassThrough(LayoutContext context)
voidstartedRootInline(LayoutContext context)
voidstartedTable(LayoutContext layoutContext)
voidstartedTableCaption(LayoutContext context)
voidstartedTableCell(LayoutContext layoutContext)
voidstartedTableColumn(LayoutContext context)
voidstartedTableColumnGroup(LayoutContext context)
voidstartedTableRow(LayoutContext layoutContext)
voidstartedTableSection(LayoutContext layoutContext)

Method Detail

addContent

public void addContent(LayoutContext context, ContentToken content)

addPassThroughContent

public void addPassThroughContent(LayoutContext context, ContentToken content)

finishedBlock

public void finishedBlock()

finishedDocument

public void finishedDocument()

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

handlePageBreak

public void handlePageBreak(PageContext pageContext)
A call-back that informs the renderer, that a new page must be started. This closes the old page context and copies all pending content to the new context.

This method is triggered by a call to 'LayoutProcess.pageBreakEncountered'

Parameters: pageContext

startedBlock

public void startedBlock(LayoutContext context)

startedDocument

public void startedDocument(PageContext pageContext)
Starts the document and initalizes the default page context.

Parameters: pageContext

startedFlow

public void startedFlow(LayoutContext context)
Starts a floating, absolute or static element. This establishes a new normal flow for the element.

Parameters: context

startedInline

public void startedInline(LayoutContext context)

startedMarker

public void startedMarker(LayoutContext context)

startedPassThrough

public void startedPassThrough(LayoutContext context)

startedRootInline

public void startedRootInline(LayoutContext context)

startedTable

public void startedTable(LayoutContext layoutContext)

startedTableCaption

public void startedTableCaption(LayoutContext context)

startedTableCell

public void startedTableCell(LayoutContext layoutContext)

startedTableColumn

public void startedTableColumn(LayoutContext context)

startedTableColumnGroup

public void startedTableColumnGroup(LayoutContext context)

startedTableRow

public void startedTableRow(LayoutContext layoutContext)

startedTableSection

public void startedTableSection(LayoutContext layoutContext)