|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jidesoft.grid.CellSpan
public class CellSpan
CellSpan
defines a cell span. Each cell span has an anchor cell which is determined by the row and
column. It also has rowSpan and columnSpan. Both should be a positive integer. One of the value could be 1 but not
both. If both are 1, it means no span.
0,0 | 0,1 | 0,2 | 0,3 |
1,0 | 1,1 | ||
2,0 | |||
3,0 | 3,1 | 3,2 | 3,3 |
new CellSpan(1, 1, 2,
3)
. We describe it as a cell span with anchor cell at (1,1), row span is 2 and column span is 3.
Constructor Summary | |
---|---|
CellSpan(CellSpan span)
|
|
CellSpan(int row,
int column,
int rowSpan,
int columnSpan)
Creates a cell span. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
contains(int rowIndex,
int columnIndex)
Checks if the rowIndex and columnIndex is within the scope of the cell span. |
boolean |
equals(Object o)
|
int |
getColumn()
Gets the row index of anchor cell. |
int |
getColumnSpan()
Gets the column span. |
int |
getRow()
Gets the row index of anchor cell. |
int |
getRowSpan()
Gets the row span. |
int |
hashCode()
|
void |
setColumn(int column)
Sets the column index for anchor cell. |
void |
setColumnSpan(int columnSpan)
Sets the column span. |
void |
setRow(int row)
Sets the row index for anchor cell. |
void |
setRowSpan(int rowSpan)
Sets the row span. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CellSpan(int row, int column, int rowSpan, int columnSpan)
row
- the row index of anchor cell.column
- the column index of anchor cell.rowSpan
- the row span. Should be positive integer.columnSpan
- the column span. Should be positive integer.public CellSpan(CellSpan span)
Method Detail |
---|
public int getRow()
public void setRow(int row)
row
- public int getColumn()
public void setColumn(int column)
column
- public int getRowSpan()
public void setRowSpan(int rowSpan)
rowSpan
- public int getColumnSpan()
public void setColumnSpan(int columnSpan)
columnSpan
- public boolean contains(int rowIndex, int columnIndex)
rowIndex
- columnIndex
-
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object clone()
clone
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |