org.jfree.layouting.renderer

Class PrototypeBuildingRenderer

public class PrototypeBuildingRenderer extends Object implements Renderer

This renderer does not build real output. This renderer fills in prototype element definitions and is later used to spit them out when requested. Prototypes are filled in in the first stage of the renderering and are reused in all subsequent stages. This class needs to be implemented later.

Author: Thomas Morgner

See Also: http://www.w3.org/TR/css3-gcpm/#generated

Constructor Summary
PrototypeBuildingRenderer(LayoutProcess layoutProcess)
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.
StatesaveState()
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)

Constructor Detail

PrototypeBuildingRenderer

public PrototypeBuildingRenderer(LayoutProcess layoutProcess)

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

saveState

public State saveState()

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)