Class Grid.CssGridCell

java.lang.Object
com.itextpdf.layout.renderer.Grid.CssGridCell
Enclosing class:
Grid

private static class Grid.CssGridCell extends Object
  • Field Details

    • value

      IRenderer value
    • startX

      int startX
    • spanX

      int spanX
    • offsetX

      int offsetX
    • startY

      int startY
    • spanY

      int spanY
    • offsetY

      int offsetY
  • Constructor Details

    • CssGridCell

      CssGridCell(IRenderer value, int templateSizeX, int templateSizeY)
  • Method Details

    • initAxisPlacement

      private static int[] initAxisPlacement(Integer startProperty, Integer endProperty, Integer spanProperty, int templateSize)
      Init axis placement values if start > end values are swapped
      Parameters:
      startProperty - x/y pos of cell on a grid
      endProperty - x/y + width/height pos of cell on a grid
      spanProperty - vertical or horizontal span of the cell on a grid
      Returns:
      array, where first value is column/row start, second is column/row span and third is an offset to the opposite direction of current axis where cell should be placed.