public abstract class RootRenderer extends AbstractRenderer
| Modifier and Type | Field and Description |
|---|---|
protected LayoutArea |
currentArea |
protected int |
currentPageNumber |
protected boolean |
immediateFlush |
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, parent, positionedRenderers, properties| Constructor and Description |
|---|
RootRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(IRenderer renderer)
Adds a child to the current renderer
|
void |
flush() |
protected abstract void |
flushSingleRenderer(IRenderer resultRenderer) |
LayoutArea |
getCurrentArea() |
LayoutResult |
layout(LayoutContext layoutContext)
This method simulates positioning of the renderer, including all of its children, and returns
the
LayoutResult, representing the layout result, including occupied area, status, i.e. |
protected abstract LayoutArea |
updateCurrentArea(LayoutResult overflowResult) |
addAllProperties, alignChildHorizontally, applyAbsolutePositioningTranslation, applyAction, applyBorderBox, applyDestination, applyMargins, applyPaddings, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, getBorderAreaBBox, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getModelElement, getOccupiedArea, getOccupiedAreaBBox, getOwnProperties, getOwnProperty, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, hasOwnProperty, hasProperty, initElementAreas, isFixedLayout, isFlushed, isNotFittingHeight, isPositioned, move, retrieveHeight, retrieveUnitValue, retrieveWidth, setBorders, setParent, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNextRendererprotected boolean immediateFlush
protected LayoutArea currentArea
protected int currentPageNumber
public void addChild(IRenderer renderer)
IRendereraddChild in interface IRendereraddChild in class AbstractRendererrenderer - a child to be addedpublic void flush()
public LayoutResult layout(LayoutContext layoutContext)
IRendererLayoutResult, representing the layout result, including occupied area, status, i.e.
if there was enough place to fit the renderer subtree, etc.
LayoutResult can be extended to return custom layout results for custom elements, e.g.
TextRenderer uses TextLayoutResult as its result.
This method can be called standalone to learn how much area the renderer subtree needs, or can be called
before IRenderer.draw(DrawContext), to prepare the renderer to be flushed to the output stream.layoutContext - the description of layout area and any other additional informationpublic LayoutArea getCurrentArea()
protected abstract void flushSingleRenderer(IRenderer resultRenderer)
protected abstract LayoutArea updateCurrentArea(LayoutResult overflowResult)
Copyright © 1998–2016 iText Group NV. All rights reserved.