Class GridLayout.Cell
java.lang.Object
xyz.gmitch215.socketmc.screen.layout.AbstractLayout.AbstractChildContainer
xyz.gmitch215.socketmc.screen.layout.GridLayout.Cell
- All Implemented Interfaces:
Serializable
- Enclosing class:
GridLayout
A Child Container inside of a GridLayout.
- See Also:
-
Constructor Summary
ConstructorDescriptionCell
(@NotNull LayoutElement child, int row, int column, int occupiedRows, int occupiedColumns, LayoutSettings layoutSettings) Creates a new Cell. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the column of the cell.int
Gets the last column that the cell occupies.int
Gets the last row that the cell occupies.int
Gets the number of columns the cell occupies.int
Gets the number of rows the cell occupies.int
getRow()
Gets the row of the cell.Methods inherited from class xyz.gmitch215.socketmc.screen.layout.AbstractLayout.AbstractChildContainer
getElement, getHeight, getSettings, getWidth, setHorizontalBounds, setVerticalBounds
-
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 elementrow
- The row of the cellcolumn
- The column of the celloccupiedRows
- The number of rows the cell occupiesoccupiedColumns
- The number of columns the cell occupieslayoutSettings
- 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
-