@Internal public abstract class BaseRowColShifter extends java.lang.Object
RowShifter
and ColumnShifter
Helper for shifting rows up or down and columns left and rightConstructor and Description |
---|
BaseRowColShifter() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<CellRangeAddress> |
shiftMergedRegions(int start,
int end,
int n)
Shifts, grows, or shrinks the merged regions due to a row shift
(
RowShifter ) or column shift (ColumnShifter ). |
static CellRangeAddress |
shiftRange(FormulaShifter formulaShifter,
CellRangeAddress cra,
int currentExternSheetIx) |
abstract void |
updateConditionalFormatting(FormulaShifter formulaShifter)
Update conditional formatting
|
abstract void |
updateFormulas(FormulaShifter formulaShifter)
Update formulas.
|
abstract void |
updateHyperlinks(FormulaShifter formulaShifter)
Shift the Hyperlink anchors (not the hyperlink text, even if the hyperlink
is of type LINK_DOCUMENT and refers to a cell that was shifted).
|
abstract void |
updateNamedRanges(FormulaShifter formulaShifter)
Update named ranges
|
public abstract void updateNamedRanges(FormulaShifter formulaShifter)
public abstract void updateFormulas(FormulaShifter formulaShifter)
public abstract java.util.List<CellRangeAddress> shiftMergedRegions(int start, int end, int n)
RowShifter
) or column shift (ColumnShifter
).
Merged regions that are completely overlaid by shifting will be deleted.start
- the first row or column to be shiftedend
- the last row or column to be shiftedn
- the number of rows or columns to shiftpublic abstract void updateConditionalFormatting(FormulaShifter formulaShifter)
formulaShifter
- The FormulaShifter
to usepublic abstract void updateHyperlinks(FormulaShifter formulaShifter)
formulaShifter
- the formula shifting policypublic static CellRangeAddress shiftRange(FormulaShifter formulaShifter, CellRangeAddress cra, int currentExternSheetIx)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.