|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.jeppers.grid.CellSpan
This class embodies the idea that cells can be merged. That is a cell can span over cells to the right and to the bottom. The cell which is displayed by the span is referred to as the anchor cell.
Constructor Summary | |
CellSpan(int anchorRow,
int anchorColumn,
int rowCount,
int columnCount)
Create a CellSpan that represents a span at
anchorRow and anchorColumn
that spans over the following rowCount rows and
columnCount columns. |
Method Summary | |
boolean |
containsCell(int row,
int column)
Returns true if the cell at row and column
is part of the span. |
int |
getColumn()
Return the anchor column. |
int |
getColumnCount()
Return the number of columns that the span covers. |
int |
getFirstColumn()
Return the first column that the span covers. |
int |
getFirstRow()
Return the first row that the span covers. |
int |
getLastColumn()
Return the last column that the span covers. |
int |
getLastRow()
Return the last row that the span covers. |
int |
getRow()
Return the anchor row. |
int |
getRowCount()
Return the number of rows that the span covers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CellSpan(int anchorRow, int anchorColumn, int rowCount, int columnCount)
CellSpan
that represents a span at
anchorRow
and anchorColumn
that spans over the following rowCount
rows and
columnCount
columns.
Method Detail |
public int getRow()
public int getColumn()
public int getRowCount()
public int getColumnCount()
public int getFirstRow()
public int getLastRow()
public int getFirstColumn()
public int getLastColumn()
public boolean containsCell(int row, int column)
row
and column
is part of the span. That is, the specified cell is the anchor cell or is hidden by
the span.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |