Class RowShifter
- java.lang.Object
-
- org.apache.poi.ss.usermodel.helpers.BaseRowColShifter
-
- org.apache.poi.ss.usermodel.helpers.RowShifter
-
- Direct Known Subclasses:
HSSFRowShifter,XSSFRowShifter
public abstract class RowShifter extends BaseRowColShifter
Helper for shifting rows up or down
-
-
Constructor Summary
Constructors Constructor Description RowShifter(Sheet sh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CellRangeAddress>shiftMergedRegions(int startRow, int endRow, int n)Shifts, grows, or shrinks the merged regions due to a row shift.-
Methods inherited from class org.apache.poi.ss.usermodel.helpers.BaseRowColShifter
shiftRange, updateConditionalFormatting, updateFormulas, updateHyperlinks, updateNamedRanges
-
-
-
-
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:
shiftMergedRegionsin classBaseRowColShifter- Parameters:
startRow- the row to start shiftingendRow- the row to end shiftingn- the number of rows to shift- Returns:
- an array of affected merged regions, doesn't contain deleted ones
-
-