public abstract class AbstractRenderer extends java.lang.Object implements Renderer
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractRenderer.RendererState |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRenderer(LayoutProcess layoutProcess,
boolean init) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
saveState
protected AbstractRenderer(LayoutProcess layoutProcess, boolean init)
public LogicalPageBox getLogicalPageBox()
public LayoutProcess getLayoutProcess()
public RenderPageContext getRenderPageContext()
public void setLayoutFailureReason(int layoutFailureReason, java.lang.Object layoutFailureNodeId)
public void startedDocument(PageContext pageContext)
Renderer
startedDocument
in interface Renderer
protected final void tryValidateOutput(java.lang.Object instanceId) throws NormalizationException
instanceId
- can be null if there is no meaningful instanceid.NormalizationException
protected abstract void validateOutput() throws NormalizationException
NormalizationException
protected RenderBox getInsertationPoint()
protected boolean isProcessingNormalFlow()
public void startedFlow(LayoutContext context) throws NormalizationException
Renderer
startedFlow
in interface Renderer
NormalizationException
public void startedTable(LayoutContext context) throws NormalizationException
startedTable
in interface Renderer
NormalizationException
public void startedTableColumnGroup(LayoutContext context) throws NormalizationException
startedTableColumnGroup
in interface Renderer
NormalizationException
public void startedTableColumn(LayoutContext context) throws NormalizationException
startedTableColumn
in interface Renderer
NormalizationException
public void startedTableSection(LayoutContext context) throws NormalizationException
startedTableSection
in interface Renderer
NormalizationException
public void startedTableRow(LayoutContext context) throws NormalizationException
startedTableRow
in interface Renderer
NormalizationException
public void startedTableCell(LayoutContext context) throws NormalizationException
startedTableCell
in interface Renderer
NormalizationException
public void startedBlock(LayoutContext context) throws NormalizationException
startedBlock
in interface Renderer
NormalizationException
public void startedMarker(LayoutContext context) throws NormalizationException
startedMarker
in interface Renderer
NormalizationException
public void startedRootInline(LayoutContext context) throws NormalizationException
startedRootInline
in interface Renderer
NormalizationException
public void startedInline(LayoutContext context) throws NormalizationException
startedInline
in interface Renderer
NormalizationException
public void addContent(LayoutContext context, ContentToken content) throws NormalizationException
addContent
in interface Renderer
NormalizationException
public void finishedInline() throws NormalizationException
finishedInline
in interface Renderer
NormalizationException
public void finishedRootInline() throws NormalizationException
finishedRootInline
in interface Renderer
NormalizationException
public void finishedMarker() throws NormalizationException
finishedMarker
in interface Renderer
NormalizationException
public void finishedBlock() throws NormalizationException
finishedBlock
in interface Renderer
NormalizationException
public void finishedTableCell() throws NormalizationException
finishedTableCell
in interface Renderer
NormalizationException
public void finishedTableRow() throws NormalizationException
finishedTableRow
in interface Renderer
NormalizationException
public void finishedTableSection() throws NormalizationException
finishedTableSection
in interface Renderer
NormalizationException
public void finishedTableColumnGroup() throws NormalizationException
finishedTableColumnGroup
in interface Renderer
NormalizationException
public void finishedTableColumn() throws NormalizationException
finishedTableColumn
in interface Renderer
NormalizationException
public void finishedTable() throws NormalizationException
finishedTable
in interface Renderer
NormalizationException
public void finishedFlow() throws NormalizationException
finishedFlow
in interface Renderer
NormalizationException
public void finishedDocument() throws NormalizationException
finishedDocument
in interface Renderer
NormalizationException
public RenderPageContext getPageContext()
public void handlePageBreak(PageContext pageContext)
Renderer
handlePageBreak
in interface Renderer
public void startedPassThrough(LayoutContext context)
startedPassThrough
in interface Renderer
public void addPassThroughContent(LayoutContext context, ContentToken content)
addPassThroughContent
in interface Renderer
public void finishedPassThrough()
finishedPassThrough
in interface Renderer
public void startedTableCaption(LayoutContext context) throws NormalizationException
startedTableCaption
in interface Renderer
NormalizationException
public void finishedTableCaption() throws NormalizationException
finishedTableCaption
in interface Renderer
NormalizationException