public abstract class RowShifter
extends java.lang.Object
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.
|
abstract void |
updateConditionalFormatting(FormulaShifter shifter) |
abstract void |
updateFormulas(FormulaShifter shifter)
Update formulas.
|
abstract void |
updateHyperlinks(FormulaShifter shifter)
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 shifter)
Updated named ranges
|
abstract void |
updateRowFormulas(Row row,
FormulaShifter shifter)
Update the formulas in specified row using the formula shifting policy specified by shifter
|
protected final Sheet sheet
public RowShifter(Sheet sh)
public java.util.List<CellRangeAddress> shiftMergedRegions(int startRow, int endRow, int n)
startRow
- the row to start shiftingendRow
- the row to end shiftingn
- the number of rows to shiftpublic abstract void updateNamedRanges(FormulaShifter shifter)
public abstract void updateFormulas(FormulaShifter shifter)
@Internal public abstract void updateRowFormulas(Row row, FormulaShifter shifter)
row
- the row to update the formulas onshifter
- the formula shifting policypublic abstract void updateConditionalFormatting(FormulaShifter shifter)
public abstract void updateHyperlinks(FormulaShifter shifter)
shifter
- the formula shifting policyCopyright 2018 The Apache Software Foundation or its licensors, as applicable.