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
(BaseRowColShifter 类中的 shiftMergedRegions)
startRow
- the row to start shifting
(startRow - 开始移动的行)
endRow
- the row to end shifting
(endRow - 结束移位的行)
n
- the number of rows to shift
(n - 要移动的行数)
public static void validateShiftParameters(int firstShiftColumnIndex, int lastShiftColumnIndex, int step)
firstShiftColumnIndex
- the column to start shifting
(firstShiftColumnIndex - 开始移动的列)
lastShiftColumnIndex
- the column to end shifting
(lastShiftColumnIndex - 结束移位的列)
step
- length of the shifting step
(step - 移动步长)
public static void validateShiftLeftParameters(int firstShiftColumnIndex, int lastShiftColumnIndex, int step)
firstShiftColumnIndex
- the column to start shifting
(firstShiftColumnIndex - 开始移动的列)
lastShiftColumnIndex
- the column to end shifting
(lastShiftColumnIndex - 结束移位的列)
step
- length of the shifting step
(step - 移动步长)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.