public class DocumentRenderer extends RootRenderer
| Modifier and Type | Field and Description |
|---|---|
protected Document |
document |
protected List<Integer> |
wrappedContentPage |
currentArea, currentPageNumber, immediateFlushchildRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, parent, positionedRenderers, properties| Constructor and Description |
|---|
DocumentRenderer(Document document) |
DocumentRenderer(Document document,
boolean immediateFlush) |
| Modifier and Type | Method and Description |
|---|---|
protected PageSize |
addNewPage(PageSize customPageSize) |
protected void |
flushSingleRenderer(IRenderer resultRenderer) |
IRenderer |
getNextRenderer()
Gets a new instance of this class to be used as a next renderer, after this renderer is used, if
IRenderer.layout(LayoutContext) is called more than once. |
LayoutArea |
getOccupiedArea()
Gets the resultant occupied area after the last call to the
IRenderer.layout(LayoutContext) method. |
protected LayoutArea |
updateCurrentArea(LayoutResult overflowResult) |
addChild, flush, getCurrentArea, layoutaddAllProperties, alignChildHorizontally, applyAbsolutePositioningTranslation, applyAction, applyBorderBox, applyDestination, applyMargins, applyPaddings, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, getBorderAreaBBox, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getModelElement, getOccupiedAreaBBox, getOwnProperties, getOwnProperty, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, hasOwnProperty, hasProperty, initElementAreas, isFixedLayout, isFlushed, isNotFittingHeight, isPositioned, move, retrieveHeight, retrieveUnitValue, retrieveWidth, setBorders, setParent, setProperty, toStringprotected Document document
public DocumentRenderer(Document document)
public DocumentRenderer(Document document, boolean immediateFlush)
public LayoutArea getOccupiedArea()
IRendererIRenderer.layout(LayoutContext) method.getOccupiedArea in interface IRenderergetOccupiedArea in class AbstractRendererLayoutArea instancepublic IRenderer getNextRenderer()
IRendererIRenderer.layout(LayoutContext) is called more than once.protected LayoutArea updateCurrentArea(LayoutResult overflowResult)
updateCurrentArea in class RootRendererprotected void flushSingleRenderer(IRenderer resultRenderer)
flushSingleRenderer in class RootRendererCopyright © 1998–2016 iText Group NV. All rights reserved.