IGridRegion intersection = IGridRegion.Tool.intersect(mergedRegion, tableRegion); if (intersection != null) {
public int getWidth(ICell cell) { IGridRegion gr; if ((gr = cell.getRegion()) == null) { return grid.getColumnWidth(cell.getColumn()); } int w = 0; gr = IGridRegion.Tool.intersect(gr, reg); if (gr != null) { for (int c = gr.getLeft(); c <= gr.getRight(); c++) { w += grid.getColumnWidth(c); } } return w; }
public int getWidth(ICell cell) { IGridRegion gr; if ((gr = cell.getRegion()) == null) { return grid.getColumnWidth(cell.getColumn()); } int w = 0; gr = IGridRegion.Tool.intersect(gr, reg); if (gr != null) { for (int c = gr.getLeft(); c <= gr.getRight(); c++) { w += grid.getColumnWidth(c); } } return w; }
int getRowSpan(ICell cell) { IGridRegion gr = cell.getRegion(); if (gr == null) { return 1; } return IGridRegion.Tool.height(IGridRegion.Tool.intersect(reg, gr)); }
int getColSpan(ICell cell) { IGridRegion gr = cell.getRegion(); if (gr == null) { return 1; } return IGridRegion.Tool.width(IGridRegion.Tool.intersect(reg, gr)); }
int getColSpan(ICell cell) { IGridRegion gr = cell.getRegion(); if (gr == null) { return 1; } return IGridRegion.Tool.width(IGridRegion.Tool.intersect(reg, gr)); }
int getRowSpan(ICell cell) { IGridRegion gr = cell.getRegion(); if (gr == null) { return 1; } return IGridRegion.Tool.height(IGridRegion.Tool.intersect(reg, gr)); }