|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.com.centrumsystems.hudson.plugin.buildpipeline.Grid<T>
T
- The type of the data that gets placed in a two dimensional table.public abstract class Grid<T>
Two-dimensional finite sparse placement of things (such as projects and builds) into a grid/matrix layout.
Constructor Summary | |
---|---|
Grid()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grid()
Method Detail |
---|
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 used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |