T - The type of the data that gets placed in a two dimensional table.public abstract class Grid<T> extends Object
| Constructor and Description |
|---|
Grid() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
get(int row,
int col)
Obtains the project placed at the specific position.
|
abstract int |
getColumns()
Width of the grid.
|
int |
getNextAvailableRow(int currentRow,
int currentColumn)
Determines the next row of the grid that should be populated.
|
abstract int |
getRows()
Height of the grid.
|
boolean |
isEmpty()
Tests if the layout is empty.
|
public abstract int getRows()
public abstract int getColumns()
public abstract T get(int row, int col)
row - 0<=row<getRows()col - 0<=col<getColumns()public boolean isEmpty()
ProjectForm at all.public int getNextAvailableRow(int currentRow,
int currentColumn)
ProjectForm
when the layout is tree-like.currentRow - - The current row of the grid being usedcurrentColumn - - The current column of the grid being usedCopyright © 2004-2013 Hudson. All Rights Reserved.