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
public class ColumnDocumentRenderer extends DocumentRenderer
This class is used for convenient multi-column Document Layouting
-
-
Field Summary
Fields Modifier and Type Field Description protected Rectangle[]
columns
protected int
nextAreaNumber
-
Fields inherited from class com.itextpdf.layout.renderer.DocumentRenderer
document, targetCounterHandler, wrappedContentPage
-
Fields inherited from class com.itextpdf.layout.renderer.RootRenderer
currentArea, immediateFlush, waitingDrawingElements
-
Fields inherited from class com.itextpdf.layout.renderer.AbstractRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties
-
-
Constructor Summary
Constructors Constructor Description ColumnDocumentRenderer(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNextAreaNumber()
Gets the array index of the next area that will be written on after the current one is full (overflowed).IRenderer
getNextRenderer()
ForDocumentRenderer
, this has a meaning of the renderer that will be used for relayout.protected LayoutArea
updateCurrentArea(LayoutResult overflowResult)
-
Methods inherited from class com.itextpdf.layout.renderer.DocumentRenderer
addNewPage, ensureDocumentHasNPages, flushSingleRenderer, getOccupiedArea, getTargetCounterHandler, isRelayoutRequired
-
Methods inherited from class com.itextpdf.layout.renderer.RootRenderer
addChild, close, flush, flushWaitingDrawingElements, getCurrentArea, layout, shrinkCurrentAreaAndProcessRenderer
-
Methods 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 Detail
-
columns
protected Rectangle[] columns
-
nextAreaNumber
protected int nextAreaNumber
-
-
Constructor Detail
-
ColumnDocumentRenderer
public ColumnDocumentRenderer(Document document, Rectangle[] columns)
Creates a ColumnDocumentRenderer. SetsRootRenderer.immediateFlush
to true.
-
-
Method Detail
-
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
public IRenderer getNextRenderer()
Description copied from class:DocumentRenderer
ForDocumentRenderer
, this has a meaning of the renderer that will be used for relayout.- Specified by:
getNextRenderer
in interfaceIRenderer
- Overrides:
getNextRenderer
in classDocumentRenderer
- Returns:
- relayout renderer.
-
updateCurrentArea
protected LayoutArea updateCurrentArea(LayoutResult overflowResult)
- Overrides:
updateCurrentArea
in classDocumentRenderer
-
-