Class GridCell


  • class GridCell
    extends java.lang.Object
    This class represents a cell in a grid.
    • Field Detail

      • columnStart

        private int columnStart
      • rowStart

        private int rowStart
      • columnSpan

        private final int columnSpan
      • rowSpan

        private final int rowSpan
      • layoutArea

        private final Rectangle layoutArea
      • rowSizes

        private float[] rowSizes
        Cached track sizes for rows to use them during split.
    • Constructor Detail

      • GridCell

        GridCell​(IRenderer value,
                 int x,
                 int y,
                 int width,
                 int height)
        Create a grid cell and init value renderer position on a grid based on its properties.
        Parameters:
        value - item renderer
        x - column number at which this cell starts (column numbers start from 0)
        y - row number at which this cell starts (row numbers from 0)
        width - number of columns spanned by this cell.
        height - number of rows spanned by this cell.
    • Method Detail

      • getColumnStart

        int getColumnStart()
      • getColumnEnd

        int getColumnEnd()
      • getRowStart

        int getRowStart()
      • getRowEnd

        int getRowEnd()
      • getGridHeight

        int getGridHeight()
      • getGridWidth

        int getGridWidth()
      • setPos

        void setPos​(int y,
                    int x)
      • getRowSizes

        float[] getRowSizes()
      • setRowSizes

        void setRowSizes​(float[] rowSizes)