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 java.lang.Object implements MulticolRenderer.ColumnHeightCalculator
Default implementation ofMulticolRenderer.ColumnHeightCalculatorwhich allows 4 relayouts and performs simple additional height calculation (split the elements which don't fit).
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Floatheightprotected intmaxRelayoutCount
-
Constructor Summary
Constructors Constructor Description LayoutInInfiniteHeightCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.FloatgetAdditionalHeightOfEachColumn(MulticolRenderer renderer, MulticolRenderer.MulticolLayoutResult result)Calculate height, by which current height of givenMulticolRenderershould be increased soMulticolLayoutResult#getOverflowRenderercould be laudedintmaxAmountOfRelayouts()
-
-
-
Method Detail
-
getAdditionalHeightOfEachColumn
public java.lang.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 increasedresult- 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
-
-