public class DocumentRenderer extends RootRenderer
Modifier and Type | Field and Description |
---|---|
protected Document |
document |
protected List<Integer> |
wrappedContentPage |
currentArea, currentPageNumber, immediateFlush, waitingDrawingElements
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()
For DocumentRenderer , this has a meaning of the renderer that will be used for relayout.
|
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, flushWaitingDrawingElements, getCurrentArea, layout, shrinkCurrentAreaAndProcessRenderer
addAllProperties, alignChildHorizontally, alignChildHorizontally, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTranformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBorderArea, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, endElementOpacityApplying, endTranformationIfApplied, getBorderAreaBBox, getBorderRadii, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getLastYLineRecursively, getMargins, getMinMaxWidth, getMinMaxWidth, getModelElement, getOccupiedAreaBBox, getOwnProperties, getOwnProperty, getPaddings, getParent, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, getPropertyAsTransparentColor, getPropertyAsUnitValue, hasAbsoluteUnitValue, hasOwnOrModelProperty, hasOwnProperty, hasProperty, initElementAreas, isAbsolutePosition, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isNotFittingWidth, isPositioned, isRelativePosition, isStaticLayout, move, overrideHeightProperties, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeightsOnSplit
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()
DocumentRenderer
, this has a meaning of the renderer that will be used for relayout.
protected LayoutArea updateCurrentArea(LayoutResult overflowResult)
updateCurrentArea
in class RootRenderer
protected void flushSingleRenderer(IRenderer resultRenderer)
flushSingleRenderer
in class RootRenderer
Copyright © 1998–2018 iText Group NV. All rights reserved.