Package com.itextpdf.layout
Class ColumnDocumentRenderer
java.lang.Object
com.itextpdf.layout.renderer.AbstractRenderer
com.itextpdf.layout.renderer.RootRenderer
com.itextpdf.layout.renderer.DocumentRenderer
com.itextpdf.layout.ColumnDocumentRenderer
- All Implemented Interfaces:
-
IPropertyContainer,IRenderer
This class is used for convenient multi-column Document Layouting
-
Field Summary
FieldsFields inherited from class com.itextpdf.layout.renderer.DocumentRenderer
document, targetCounterHandler, wrappedContentPageFields inherited from class com.itextpdf.layout.renderer.RootRenderer
currentArea, immediateFlush, waitingDrawingElementsFields inherited from class com.itextpdf.layout.renderer.AbstractRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties -
Constructor Summary
ConstructorsConstructorDescriptionColumnDocumentRenderer(Document document, boolean immediateFlush, Rectangle[] columns) Creates a ColumnDocumentRenderer whose elements need not be flushed immediately.ColumnDocumentRenderer(Document document, Rectangle[] columns) Creates a ColumnDocumentRenderer. -
Method Summary
Modifier and TypeMethodDescriptionintGets the array index of the next area that will be written on after the current one is full (overflowed).ForDocumentRenderer, this has a meaning of the renderer that will be used for relayout.protected LayoutAreaupdateCurrentArea(LayoutResult overflowResult) Methods inherited from class com.itextpdf.layout.renderer.DocumentRenderer
addNewPage, ensureDocumentHasNPages, flushSingleRenderer, getOccupiedArea, getTargetCounterHandler, isRelayoutRequiredMethods inherited from class com.itextpdf.layout.renderer.RootRenderer
addChild, close, flush, flushWaitingDrawingElements, getCurrentArea, layout, shrinkCurrentAreaAndProcessRendererMethods inherited from class com.itextpdf.layout.renderer.AbstractRenderer
addAllProperties, alignChildHorizontally, allowLastYLineRecursiveExtraction, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTransformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBackgroundArea, clipBorderArea, createXObject, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, endElementOpacityApplying, endTransformationIfApplied, getBackgroundArea, 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, hasRelativeUnitValue, initElementAreas, isAbsolutePosition, isBorderBoxSizing, isFirstOnRootArea, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isNotFittingWidth, isOverflowFit, isOverflowProperty, isOverflowProperty, isOverflowProperty, isPositioned, isRelativePosition, isStaticLayout, move, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveResolvedDeclaredHeight, retrieveUnitValue, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidth
-
Field Details
-
columns
-
nextAreaNumber
protected int nextAreaNumber
-
-
Constructor Details
-
ColumnDocumentRenderer
Creates a ColumnDocumentRenderer. SetsRootRenderer.immediateFlushto true. -
ColumnDocumentRenderer
Creates a ColumnDocumentRenderer whose elements need not be flushed immediately.
-
-
Method Details
-
getNextAreaNumber
public int getNextAreaNumber()Gets the array index of the next area that will be written on after the current one is full (overflowed).- Returns:
- the array index of the next area that will be written on
-
getNextRenderer
Description copied from class:DocumentRendererForDocumentRenderer, this has a meaning of the renderer that will be used for relayout.- Specified by:
-
getNextRendererin interfaceIRenderer - Overrides:
-
getNextRendererin classDocumentRenderer - Returns:
- relayout renderer.
-
updateCurrentArea
- Overrides:
-
updateCurrentAreain classDocumentRenderer
-