Package com.itextpdf.layout.renderer
Class TableWidths
java.lang.Object
com.itextpdf.layout.renderer.TableWidths
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<TableWidths.CellInfo> private boolean
private boolean
private final float
private float
private final float
private final int
private final float
private float
private float
private final TableRenderer
private float
private final TableWidths.ColumnWidthData[]
private static final UnitValue
-
Constructor Summary
ConstructorsConstructorDescriptionTableWidths
(TableRenderer tableRenderer, float availableWidth, boolean calculateTableMaxWidth, float rightBorderMaxWidth, float leftBorderMaxWidth) -
Method Summary
Modifier and TypeMethodDescription(package private) float[]
(package private) List
<TableWidths.CellInfo> private void
private void
calculateTableWidth
(float availableWidth, boolean calculateTableMaxWidth) private float[]
private void
private void
fillRendererCells
(TableRenderer renderer, byte region) (package private) float[]
private float[]
private UnitValue
getCellWidth
(CellRenderer cell, boolean zeroIsValid) Gets width of the cell, adding paddings and extra spacing if necessary.(package private) float
private Table
getTable()
(package private) boolean
(package private) float[]
layout()
(package private) void
(package private) void
processCellsRemainWidth
(TableWidths.CellInfo cell, UnitValue cellWidth) (package private) void
(package private) void
recalculate
(float minSum) private UnitValue
resolveMinMaxCollision
(CellRenderer cell, UnitValue widthValue) private float
retrieveTableWidth
(float width) private Float
retrieveTableWidth
(UnitValue width, float availableWidth) toString()
private void
-
Field Details
-
tableRenderer
-
numberOfColumns
private final int numberOfColumns -
rightBorderMaxWidth
private final float rightBorderMaxWidth -
leftBorderMaxWidth
private final float leftBorderMaxWidth -
widths
-
horizontalBorderSpacing
private final float horizontalBorderSpacing -
cells
-
tableWidth
private float tableWidth -
fixedTableWidth
private boolean fixedTableWidth -
fixedTableLayout
private boolean fixedTableLayout -
layoutMinWidth
private float layoutMinWidth -
tableMinWidth
private float tableMinWidth -
tableMaxWidth
private float tableMaxWidth -
ZeroWidth
-
-
Constructor Details
-
TableWidths
TableWidths(TableRenderer tableRenderer, float availableWidth, boolean calculateTableMaxWidth, float rightBorderMaxWidth, float leftBorderMaxWidth)
-
-
Method Details
-
hasFixedLayout
boolean hasFixedLayout() -
layout
float[] layout() -
getMinWidth
float getMinWidth() -
autoLayout
float[] autoLayout() -
autoLayoutCustom
List<TableWidths.CellInfo> autoLayoutCustom() -
processCell
-
processColumns
void processColumns() -
recalculate
void recalculate(float minSum) -
processCellsRemainWidth
-
fixedLayout
float[] fixedLayout() -
calculateTableWidth
private void calculateTableWidth(float availableWidth, boolean calculateTableMaxWidth) -
retrieveTableWidth
-
retrieveTableWidth
private float retrieveTableWidth(float width) -
getTable
-
calculateMinMaxWidths
private void calculateMinMaxWidths() -
getCellBorderIndents
-
fillAndSortCells
private void fillAndSortCells() -
fillRendererCells
-
warn100percent
private void warn100percent() -
extractWidths
private float[] extractWidths() -
toString
-
getCellWidth
Gets width of the cell, adding paddings and extra spacing if necessary.- Parameters:
cell
- renderer from which width will be taken. Note that this method will not change original width of the element.zeroIsValid
- defines if 0 width is valid- Returns:
- increased width of the renderer
-
resolveMinMaxCollision
-