public abstract class RowShifter extends BaseRowColShifter
Constructor and Description |
---|
RowShifter(Sheet sh) |
Modifier and Type | Method and Description |
---|---|
java.util.List<CellRangeAddress> |
shiftMergedRegions(int startRow,
int endRow,
int n)
Shifts, grows, or shrinks the merged regions due to a row shift.
|
static void |
validateShiftLeftParameters(int firstShiftColumnIndex,
int lastShiftColumnIndex,
int step)
Verify that the given column indices and step denote a valid range of columns to shift to the left
|
static void |
validateShiftParameters(int firstShiftColumnIndex,
int lastShiftColumnIndex,
int step)
Verify that the given column indices and step denote a valid range of columns to shift
|
shiftRange, updateConditionalFormatting, updateFormulas, updateHyperlinks, updateNamedRanges
protected final Sheet sheet
public RowShifter(Sheet sh)
public java.util.List<CellRangeAddress> shiftMergedRegions(int startRow, int endRow, int n)
shiftMergedRegions
in class BaseRowColShifter
startRow
- the row to start shiftingendRow
- the row to end shiftingn
- the number of rows to shiftpublic static void validateShiftParameters(int firstShiftColumnIndex, int lastShiftColumnIndex, int step)
firstShiftColumnIndex
- the column to start shiftinglastShiftColumnIndex
- the column to end shiftingstep
- length of the shifting steppublic static void validateShiftLeftParameters(int firstShiftColumnIndex, int lastShiftColumnIndex, int step)
firstShiftColumnIndex
- the column to start shiftinglastShiftColumnIndex
- the column to end shiftingstep
- length of the shifting stepCopyright 2020 The Apache Software Foundation or its licensors, as applicable.