Class RowShifter

    • Constructor Detail

      • RowShifter

        public RowShifter​(Sheet sh)
    • Method Detail

      • shiftMergedRegions

        public java.util.List<CellRangeAddress> shiftMergedRegions​(int startRow,
                                                                   int endRow,
                                                                   int n)
        Shifts, grows, or shrinks the merged regions due to a row shift. Merged regions that are completely overlaid by shifting will be deleted.
        Specified by:
        shiftMergedRegions in class BaseRowColShifter
        Parameters:
        startRow - the row to start shifting
        endRow - the row to end shifting
        n - the number of rows to shift
        Returns:
        an array of affected merged regions, doesn't contain deleted ones