Class TableWidths
java.lang.Object
com.itextpdf.layout.renderer.TableWidths
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<TableWidths.CellInfo> private booleanprivate booleanprivate final floatprivate floatprivate final floatprivate final intprivate final floatprivate floatprivate floatprivate final TableRendererprivate floatprivate 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 voidprivate voidcalculateTableWidth(float availableWidth, boolean calculateTableMaxWidth) private float[]private voidprivate voidfillRendererCells(TableRenderer renderer, byte region) (package private) float[]private float[]private UnitValuegetCellWidth(CellRenderer cell, boolean zeroIsValid) Gets width of the cell, adding paddings and extra spacing if necessary.(package private) floatprivate TablegetTable()(package private) boolean(package private) float[]layout()(package private) void(package private) voidprocessCellsRemainWidth(TableWidths.CellInfo cell, UnitValue cellWidth) (package private) void(package private) voidrecalculate(float minSum) private UnitValueresolveMinMaxCollision(CellRenderer cell, UnitValue widthValue) private floatretrieveTableWidth(float width) private FloatretrieveTableWidth(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
-