public class CellInfoUtils
extends java.lang.Object
Created by rinoux on 2017/6/30.
| 构造器和说明 |
|---|
CellInfoUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
calculateCEDimension(WriteCellElementInfo info,
ReportCaseDimensionTool dimensionTool)
根据WebElementReportCase的像素信息计算单元格所在位置的尺寸
|
static java.lang.String |
createCEId(CellElement cell)
根据位置和span生成ID
|
static WriteCellElementInfo |
getByDir(CellElementInfoMap map,
int column,
int row,
WriteDirection direction,
boolean allowNull)
以当前为起点向指定方向查找单元格
|
static WriteCellElementInfo |
getByDir(CellElementInfoMap map,
WriteCellElementInfo current,
WriteDirection direction,
boolean allowNull)
获得当前单元格指定方向上的第一个单元格
|
static WriteCellElementInfo |
getCEInfoIfExist(CellElementInfoMap map,
int column,
int row,
WriteDimension scope)
获得column/row上的单元格,如果不存在,向scope外查找扩展格
|
static WriteCellElementInfo |
getLeftClosed(CellElementInfoMap map,
WriteCellElementInfo current)
获取空间上和当前单元格左侧紧邻的
|
static WriteCellElementInfo |
getUpClosed(CellElementInfoMap map,
WriteCellElementInfo current)
获取空间上和当前单元格上方紧邻的且边框覆盖当前的上边框的格子
|
public static WriteCellElementInfo getUpClosed(CellElementInfoMap map, WriteCellElementInfo current)
map - 所在CellElementInfoMapcurrent - 当前单元格public static WriteCellElementInfo getLeftClosed(CellElementInfoMap map, WriteCellElementInfo current)
map - 所在CellElementInfoMapcurrent - 当前单元格public static WriteCellElementInfo getByDir(CellElementInfoMap map, WriteCellElementInfo current, WriteDirection direction, boolean allowNull)
map - 所在CellElementInfoMapcurrent - 当前单元格direction - 方向allowNull - 允许为空public static WriteCellElementInfo getByDir(CellElementInfoMap map, int column, int row, WriteDirection direction, boolean allowNull)
column - 列row - 行direction - 方向allowNull - 允许取空public static java.lang.String createCEId(CellElement cell)
cell - public static void calculateCEDimension(WriteCellElementInfo info, ReportCaseDimensionTool dimensionTool)
info - dimensionTool - public static WriteCellElementInfo getCEInfoIfExist(CellElementInfoMap map, int column, int row, WriteDimension scope)
map - column - row - scope - 当前选区,包括所有在选区内的格子和扩展到选区内的格子