Class XSSFRowShifter
java.lang.Object
org.apache.poi.ss.usermodel.helpers.BaseRowColShifter
org.apache.poi.ss.usermodel.helpers.RowShifter
org.apache.poi.xssf.usermodel.helpers.XSSFRowShifter
Helper for shifting rows up or down
-
Field Summary
Fields inherited from class org.apache.poi.ss.usermodel.helpers.RowShifter
sheet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidshiftDrawingAnchors(int startRow, int endRow, int n) Shift the anchors of the shapes (charts, pictures, ...) in the sheet's drawing along with the rows they are anchored to.voidupdateConditionalFormatting(FormulaShifter formulaShifter) voidupdateFormulas(FormulaShifter formulaShifter) voidupdateHyperlinks(FormulaShifter formulaShifter) voidupdateNamedRanges(FormulaShifter formulaShifter) voidupdateRowFormulas(XSSFRow row, FormulaShifter formulaShifter) Update the formulas in specified row using the formula shifting policy specified by shifterMethods inherited from class org.apache.poi.ss.usermodel.helpers.RowShifter
shiftMergedRegions, validateShiftLeftParameters, validateShiftParametersMethods inherited from class org.apache.poi.ss.usermodel.helpers.BaseRowColShifter
shiftRange
-
Constructor Details
-
XSSFRowShifter
-
-
Method Details
-
updateNamedRanges
- Specified by:
updateNamedRangesin classBaseRowColShifter
-
updateFormulas
- Specified by:
updateFormulasin classBaseRowColShifter
-
updateRowFormulas
@Internal(since="3.15 beta 2") public void updateRowFormulas(XSSFRow row, FormulaShifter formulaShifter) Update the formulas in specified row using the formula shifting policy specified by shifter- Parameters:
row- the row to update the formulas onformulaShifter- the formula shifting policy
-
updateConditionalFormatting
- Specified by:
updateConditionalFormattingin classBaseRowColShifter
-
updateHyperlinks
- Specified by:
updateHyperlinksin classBaseRowColShifter
-
shiftDrawingAnchors
public void shiftDrawingAnchors(int startRow, int endRow, int n) Shift the anchors of the shapes (charts, pictures, ...) in the sheet's drawing along with the rows they are anchored to. A shape is moved when its top-left anchor row is within[startRow, endRow]; the whole shape is moved so it keeps its size. Shapes with an absolute anchor are not moved.- Parameters:
startRow- the row to start shiftingendRow- the row to end shiftingn- the number of rows to shift- Since:
- 6.0.0
-