mirror of
https://github.com/geekwenjie/SmartJavaAI.git
synced 2026-09-13 05:08:55 +00:00
43 lines
916 B
Java
43 lines
916 B
Java
|
|
package cn.smartjavaai.ocr.utils;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @Auther: xiaoqiang
|
||
|
|
* @Date: 2020/12/9 9:17
|
||
|
|
* @Description:
|
||
|
|
*/
|
||
|
|
public class CrossRangeCellMeta {
|
||
|
|
public CrossRangeCellMeta(int firstRowIndex, int firstColIndex, int rowSpan, int colSpan) {
|
||
|
|
super();
|
||
|
|
this.firstRowIndex = firstRowIndex;
|
||
|
|
this.firstColIndex = firstColIndex;
|
||
|
|
this.rowSpan = rowSpan;
|
||
|
|
this.colSpan = colSpan;
|
||
|
|
}
|
||
|
|
|
||
|
|
private int firstRowIndex;
|
||
|
|
private int firstColIndex;
|
||
|
|
private int rowSpan;// 跨越行数
|
||
|
|
private int colSpan;// 跨越列数
|
||
|
|
|
||
|
|
public int getFirstRow() {
|
||
|
|
return firstRowIndex;
|
||
|
|
}
|
||
|
|
|
||
|
|
public int getLastRow() {
|
||
|
|
return firstRowIndex + rowSpan - 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
public int getFirstCol() {
|
||
|
|
return firstColIndex;
|
||
|
|
}
|
||
|
|
|
||
|
|
public int getLastCol() {
|
||
|
|
return firstColIndex + colSpan - 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
public int getColSpan(){
|
||
|
|
return colSpan;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|