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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdditionalHeightOfEachColumn
(MulticolRenderer renderer, MulticolRenderer.MulticolLayoutResult result) Calculate height, by which current height of givenMulticolRenderer
should be increased soMulticolLayoutResult#getOverflowRenderer
could 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.ColumnHeightCalculator
Calculate height, by which current height of givenMulticolRenderer
should be increased soMulticolLayoutResult#getOverflowRenderer
could be lauded- Specified by:
-
getAdditionalHeightOfEachColumn
in interfaceMulticolRenderer.ColumnHeightCalculator
- Parameters:
-
renderer
- multicol renderer for which height needs to be increased -
result
- result of one iteration ofMulticolRenderer
layouting - Returns:
- height by which current height of given multicol renderer should be increased
-
maxAmountOfRelayouts
public int maxAmountOfRelayouts()- Specified by:
-
maxAmountOfRelayouts
in interfaceMulticolRenderer.ColumnHeightCalculator
- Returns:
- maximum amount of relayouts which can be done by this height enhancer
-