public class DocumentRenderer extends RootRenderer
Modifier and Type | Field and Description |
---|---|
protected Document |
document |
protected List<Integer> |
wrappedContentPage |
currentArea, currentPageNumber, immediateFlush
childRenderers, 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, close, flush, getCurrentArea, layout
addAllProperties, alignChildHorizontally, applyAbsolutePositioningTranslation, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyMargins, applyMargins, applyPaddings, applyPaddings, calculateAbsolutePdfBBox, calculateBBox, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, getBorderAreaBBox, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getMargins, getModelElement, getOccupiedAreaBBox, getOwnProperties, getOwnProperty, getPaddings, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, hasOwnOrModelProperty, hasOwnProperty, hasProperty, initElementAreas, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isPositioned, isRelativePosition, move, rectangleToPointsList, retrieveHeight, retrieveUnitValue, retrieveWidth, setBorders, setParent, setProperty, toString, transformPoints
protected Document document
public DocumentRenderer(Document document)
public DocumentRenderer(Document document, boolean immediateFlush)
public LayoutArea getOccupiedArea()
AbstractRenderer
IRenderer.layout(LayoutContext)
method.
getOccupiedArea
in interface IRenderer
getOccupiedArea
in class AbstractRenderer
LayoutArea
instance
public IRenderer getNextRenderer()
IRenderer
IRenderer.layout(LayoutContext)
is called more than once.
protected LayoutArea updateCurrentArea(LayoutResult overflowResult)
updateCurrentArea
in class RootRenderer
protected void flushSingleRenderer(IRenderer resultRenderer)
flushSingleRenderer
in class RootRenderer
Copyright © 1998–2016 iText Group NV. All rights reserved.