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.ColumnHeightCalculator
which 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.Float
height
protected int
maxRelayoutCount
-
Constructor Summary
Constructors Constructor Description LayoutInInfiniteHeightCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Float
getAdditionalHeightOfEachColumn(MulticolRenderer renderer, MulticolRenderer.MulticolLayoutResult result)
Calculate height, by which current height of givenMulticolRenderer
should be increased soMulticolLayoutResult#getOverflowRenderer
could be laudedint
maxAmountOfRelayouts()
-
-
-
Method Detail
-
getAdditionalHeightOfEachColumn
public java.lang.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 increasedresult
- 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
-
-