Class TableWidths

java.lang.Object
com.itextpdf.layout.renderer.TableWidths

final class TableWidths extends Object
  • Field Details

    • tableRenderer

      private final TableRenderer tableRenderer
    • numberOfColumns

      private final int numberOfColumns
    • rightBorderMaxWidth

      private final float rightBorderMaxWidth
    • leftBorderMaxWidth

      private final float leftBorderMaxWidth
    • widths

      private final TableWidths.ColumnWidthData[] widths
    • horizontalBorderSpacing

      private final float horizontalBorderSpacing
    • cells

      private List<TableWidths.CellInfo> 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

      private static final UnitValue 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

      void processCell(TableWidths.CellInfo cell)
    • processColumns

      void processColumns()
    • recalculate

      void recalculate(float minSum)
    • processCellsRemainWidth

      void processCellsRemainWidth(TableWidths.CellInfo cell, UnitValue cellWidth)
    • fixedLayout

      float[] fixedLayout()
    • calculateTableWidth

      private void calculateTableWidth(float availableWidth, boolean calculateTableMaxWidth)
    • retrieveTableWidth

      private Float retrieveTableWidth(UnitValue width, float availableWidth)
    • retrieveTableWidth

      private float retrieveTableWidth(float width)
    • getTable

      private Table getTable()
    • calculateMinMaxWidths

      private void calculateMinMaxWidths()
    • getCellBorderIndents

      private float[] getCellBorderIndents(TableWidths.CellInfo cell)
    • fillAndSortCells

      private void fillAndSortCells()
    • fillRendererCells

      private void fillRendererCells(TableRenderer renderer, byte region)
    • warn100percent

      private void warn100percent()
    • extractWidths

      private float[] extractWidths()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCellWidth

      private UnitValue getCellWidth(CellRenderer cell, boolean zeroIsValid)
      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

      private UnitValue resolveMinMaxCollision(CellRenderer cell, UnitValue widthValue)