public class CellRange
extends java.lang.Object
| Constructor and Description |
|---|
CellRange(int firstRow,
int lastRow,
int firstCol,
int lastCol)
合并单元格构造方法
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contain(int row,
int col)
合并单元是否包含格子
|
int[] |
getCellRange() |
int |
getFirstCol() |
int |
getFirstRow() |
int |
getLastCol() |
int |
getLastRow() |
boolean |
isLeftAndTop(int row,
int col)
是否该格子在合并单元的左上角
|
void |
setFirstCol(int firstCol) |
void |
setFirstRow(int firstRow) |
void |
setLastCol(int lastCol) |
void |
setLastRow(int lastRow) |
java.lang.String |
toString() |
public CellRange(int firstRow,
int lastRow,
int firstCol,
int lastCol)
firstRow - 合并第一行lastRow - 合并最后一行firstCol - 合并第一列lastCol - 合并最后一列public int getFirstRow()
public void setFirstRow(int firstRow)
public int getLastRow()
public void setLastRow(int lastRow)
public int getFirstCol()
public void setFirstCol(int firstCol)
public int getLastCol()
public void setLastCol(int lastCol)
public int[] getCellRange()
public boolean contain(int row,
int col)
row - 行col - 列public boolean isLeftAndTop(int row,
int col)
row - 行col - 列public java.lang.String toString()
toString in class java.lang.Object