Class GridLayout.Cell

All Implemented Interfaces:
Serializable
Enclosing class:
GridLayout

public static final class GridLayout.Cell extends AbstractLayout.AbstractChildContainer
A Child Container inside of a GridLayout.
See Also:
  • Constructor Details

    • Cell

      public Cell(@NotNull @NotNull LayoutElement child, int row, int column, int occupiedRows, int occupiedColumns, LayoutSettings layoutSettings)
      Creates a new Cell.
      Parameters:
      child - The child element
      row - The row of the cell
      column - The column of the cell
      occupiedRows - The number of rows the cell occupies
      occupiedColumns - The number of columns the cell occupies
      layoutSettings - Element Layout Settings
  • Method Details

    • getRow

      public int getRow()
      Gets the row of the cell.
      Returns:
      Cell Row
    • getColumn

      public int getColumn()
      Gets the column of the cell.
      Returns:
      Cell Column
    • getOccupiedRows

      public int getOccupiedRows()
      Gets the number of rows the cell occupies.
      Returns:
      Occupied Rows
    • getOccupiedColumns

      public int getOccupiedColumns()
      Gets the number of columns the cell occupies.
      Returns:
      Occupied Columns
    • getLastOccupiedRow

      public int getLastOccupiedRow()
      Gets the last row that the cell occupies.
      Returns:
      The last row that the cell occupies
    • getLastOccupiedColumn

      public int getLastOccupiedColumn()
      Gets the last column that the cell occupies.
      Returns:
      The last column that the cell occupies