/** * Creates a new grid unit. * * @param cell table cell which occupies this grid unit * @param colSpanIndex index of this grid unit in the span, in column direction * @param rowSpanIndex index of this grid unit in the span, in row direction */ protected GridUnit(TableCell cell, int colSpanIndex, int rowSpanIndex) { this(colSpanIndex, rowSpanIndex); this.cell = cell; setBorders(cell.getTable()); }