Package com.itextpdf.layout.renderer
Class MulticolRenderer.LayoutInInfiniteHeightCalculator
java.lang.Object
com.itextpdf.layout.renderer.MulticolRenderer.LayoutInInfiniteHeightCalculator
- All Implemented Interfaces:
-
MulticolRenderer.ColumnHeightCalculator
- Enclosing class:
- MulticolRenderer
public static class MulticolRenderer.LayoutInInfiniteHeightCalculator extends Object implements MulticolRenderer.ColumnHeightCalculator
Default implementation of
MulticolRenderer.ColumnHeightCalculator which allows 4 relayouts and performs simple additional height calculation (split the elements which don't fit).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdditionalHeightOfEachColumn(MulticolRenderer renderer, MulticolRenderer.MulticolLayoutResult result) Calculate height, by which current height of givenMulticolRenderershould be increased soMulticolLayoutResult#getOverflowRenderercould be laudedint
-
Field Details
-
maxRelayoutCount
protected int maxRelayoutCount
-
-
Constructor Details
-
LayoutInInfiniteHeightCalculator
public LayoutInInfiniteHeightCalculator()
-
-
Method Details
-
getAdditionalHeightOfEachColumn
public Float getAdditionalHeightOfEachColumn(MulticolRenderer renderer, MulticolRenderer.MulticolLayoutResult result) Description copied from interface:MulticolRenderer.ColumnHeightCalculatorCalculate height, by which current height of givenMulticolRenderershould be increased soMulticolLayoutResult#getOverflowRenderercould be lauded- Specified by:
-
getAdditionalHeightOfEachColumnin interfaceMulticolRenderer.ColumnHeightCalculator - Parameters:
-
renderer- multicol renderer for which height needs to be increased -
result- result of one iteration ofMulticolRendererlayouting - Returns:
- height by which current height of given multicol renderer should be increased
-
maxAmountOfRelayouts
public int maxAmountOfRelayouts()- Specified by:
-
maxAmountOfRelayoutsin interfaceMulticolRenderer.ColumnHeightCalculator - Returns:
- maximum amount of relayouts which can be done by this height enhancer
-