Package org.jfree.layouting.renderer
Class AbstractRenderer
- java.lang.Object
-
- org.jfree.layouting.renderer.AbstractRenderer
-
- All Implemented Interfaces:
Renderer
,StatefullComponent
- Direct Known Subclasses:
PaginatingRenderer
,StreamingRenderer
public abstract class AbstractRenderer extends java.lang.Object implements Renderer
Creation-Date: 16.06.2006, 14:10:40- Author:
- Thomas Morgner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractRenderer.RendererState
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRenderer(LayoutProcess layoutProcess, boolean init)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jfree.layouting.StatefullComponent
saveState
-
-
-
-
Constructor Detail
-
AbstractRenderer
protected AbstractRenderer(LayoutProcess layoutProcess, boolean init)
-
-
Method Detail
-
getLogicalPageBox
public LogicalPageBox getLogicalPageBox()
-
getLayoutProcess
public LayoutProcess getLayoutProcess()
-
getRenderPageContext
public RenderPageContext getRenderPageContext()
-
setLayoutFailureReason
public void setLayoutFailureReason(int layoutFailureReason, java.lang.Object layoutFailureNodeId)
-
startedDocument
public void startedDocument(PageContext pageContext)
Description copied from interface:Renderer
Starts the document and initalizes the default page context.- Specified by:
startedDocument
in interfaceRenderer
-
tryValidateOutput
protected final void tryValidateOutput(java.lang.Object instanceId) throws NormalizationException
- Parameters:
instanceId
- can be null if there is no meaningful instanceid.- Throws:
NormalizationException
-
validateOutput
protected abstract void validateOutput() throws NormalizationException
- Throws:
NormalizationException
-
getInsertationPoint
protected RenderBox getInsertationPoint()
-
isProcessingNormalFlow
protected boolean isProcessingNormalFlow()
-
startedFlow
public void startedFlow(LayoutContext context) throws NormalizationException
Description copied from interface:Renderer
Starts a floating, absolute or static element. This establishes a new normal flow for the element.- Specified by:
startedFlow
in interfaceRenderer
- Throws:
NormalizationException
-
startedTable
public void startedTable(LayoutContext context) throws NormalizationException
- Specified by:
startedTable
in interfaceRenderer
- Throws:
NormalizationException
-
startedTableColumnGroup
public void startedTableColumnGroup(LayoutContext context) throws NormalizationException
- Specified by:
startedTableColumnGroup
in interfaceRenderer
- Throws:
NormalizationException
-
startedTableColumn
public void startedTableColumn(LayoutContext context) throws NormalizationException
- Specified by:
startedTableColumn
in interfaceRenderer
- Throws:
NormalizationException
-
startedTableSection
public void startedTableSection(LayoutContext context) throws NormalizationException
- Specified by:
startedTableSection
in interfaceRenderer
- Throws:
NormalizationException
-
startedTableRow
public void startedTableRow(LayoutContext context) throws NormalizationException
- Specified by:
startedTableRow
in interfaceRenderer
- Throws:
NormalizationException
-
startedTableCell
public void startedTableCell(LayoutContext context) throws NormalizationException
- Specified by:
startedTableCell
in interfaceRenderer
- Throws:
NormalizationException
-
startedBlock
public void startedBlock(LayoutContext context) throws NormalizationException
- Specified by:
startedBlock
in interfaceRenderer
- Throws:
NormalizationException
-
startedMarker
public void startedMarker(LayoutContext context) throws NormalizationException
- Specified by:
startedMarker
in interfaceRenderer
- Throws:
NormalizationException
-
startedRootInline
public void startedRootInline(LayoutContext context) throws NormalizationException
- Specified by:
startedRootInline
in interfaceRenderer
- Throws:
NormalizationException
-
startedInline
public void startedInline(LayoutContext context) throws NormalizationException
- Specified by:
startedInline
in interfaceRenderer
- Throws:
NormalizationException
-
addContent
public void addContent(LayoutContext context, ContentToken content) throws NormalizationException
- Specified by:
addContent
in interfaceRenderer
- Throws:
NormalizationException
-
finishedInline
public void finishedInline() throws NormalizationException
- Specified by:
finishedInline
in interfaceRenderer
- Throws:
NormalizationException
-
finishedRootInline
public void finishedRootInline() throws NormalizationException
- Specified by:
finishedRootInline
in interfaceRenderer
- Throws:
NormalizationException
-
finishedMarker
public void finishedMarker() throws NormalizationException
- Specified by:
finishedMarker
in interfaceRenderer
- Throws:
NormalizationException
-
finishedBlock
public void finishedBlock() throws NormalizationException
- Specified by:
finishedBlock
in interfaceRenderer
- Throws:
NormalizationException
-
finishedTableCell
public void finishedTableCell() throws NormalizationException
- Specified by:
finishedTableCell
in interfaceRenderer
- Throws:
NormalizationException
-
finishedTableRow
public void finishedTableRow() throws NormalizationException
- Specified by:
finishedTableRow
in interfaceRenderer
- Throws:
NormalizationException
-
finishedTableSection
public void finishedTableSection() throws NormalizationException
- Specified by:
finishedTableSection
in interfaceRenderer
- Throws:
NormalizationException
-
finishedTableColumnGroup
public void finishedTableColumnGroup() throws NormalizationException
- Specified by:
finishedTableColumnGroup
in interfaceRenderer
- Throws:
NormalizationException
-
finishedTableColumn
public void finishedTableColumn() throws NormalizationException
- Specified by:
finishedTableColumn
in interfaceRenderer
- Throws:
NormalizationException
-
finishedTable
public void finishedTable() throws NormalizationException
- Specified by:
finishedTable
in interfaceRenderer
- Throws:
NormalizationException
-
finishedFlow
public void finishedFlow() throws NormalizationException
- Specified by:
finishedFlow
in interfaceRenderer
- Throws:
NormalizationException
-
finishedDocument
public void finishedDocument() throws NormalizationException
- Specified by:
finishedDocument
in interfaceRenderer
- Throws:
NormalizationException
-
getPageContext
public RenderPageContext getPageContext()
-
handlePageBreak
public void handlePageBreak(PageContext pageContext)
Description copied from interface:Renderer
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'- Specified by:
handlePageBreak
in interfaceRenderer
-
startedPassThrough
public void startedPassThrough(LayoutContext context)
- Specified by:
startedPassThrough
in interfaceRenderer
-
addPassThroughContent
public void addPassThroughContent(LayoutContext context, ContentToken content)
- Specified by:
addPassThroughContent
in interfaceRenderer
-
finishedPassThrough
public void finishedPassThrough()
- Specified by:
finishedPassThrough
in interfaceRenderer
-
startedTableCaption
public void startedTableCaption(LayoutContext context) throws NormalizationException
- Specified by:
startedTableCaption
in interfaceRenderer
- Throws:
NormalizationException
-
finishedTableCaption
public void finishedTableCaption() throws NormalizationException
- Specified by:
finishedTableCaption
in interfaceRenderer
- Throws:
NormalizationException
-
-