zouyu
2025-11-27 eed98e551c817ead7965e08820d4b7adbc4a47f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.xindao.ocr.smartjavaai.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;
    }
}