private void updateMergeMetaData(final int rowIndex, final int columnIndex, final int minRowIndex, final int maxRowIndex) { //Find the cell's current value final GridRow currentRow = gridData.getRow(rowIndex); final GridCell<?> currentRowCell = currentRow.getCells().get(columnIndex); //Find minimum row with a cell containing the same value as that being updated final int minBlockRowIndex = findMinRowIndex(rowIndex, columnIndex, minRowIndex, currentRowCell); //Find maximum row with a cell containing the same value as that being updated final int maxBlockRowIndex = findMaxRowIndex(rowIndex, columnIndex, maxRowIndex, currentRowCell); //Update merge meta-data updateMergeMetaData(minBlockRowIndex, maxBlockRowIndex, columnIndex); }
private void updateMergeMetaData(final int rowIndex, final int columnIndex, final int minRowIndex, final int maxRowIndex) { //Find the cell's current value final GridRow currentRow = gridData.getRow(rowIndex); final GridCell<?> currentRowCell = currentRow.getCells().get(columnIndex); //Find minimum row with a cell containing the same value as that being updated final int minBlockRowIndex = findMinRowIndex(rowIndex, columnIndex, minRowIndex, currentRowCell); //Find maximum row with a cell containing the same value as that being updated final int maxBlockRowIndex = findMaxRowIndex(rowIndex, columnIndex, maxRowIndex, currentRowCell); //Update merge meta-data updateMergeMetaData(minBlockRowIndex, maxBlockRowIndex, columnIndex); }
final int minRowIndex = findMinRowIndex(expandMinRowIndex, columnIndex, 0,
final int minRowIndex = findMinRowIndex(expandMinRowIndex, columnIndex, 0,
final GridCell<?> currentRowCell = currentRow.getCells().get(columnIndex); int minBlockRowIndex = findMinRowIndex(blockStart - 1, columnIndex, 0,
final GridCell<?> currentRowCell = currentRow.getCells().get(columnIndex); int minBlockRowIndex = findMinRowIndex(blockStart - 1, columnIndex, 0,