Class XSSFColumnShifter
java.lang.Object
org.apache.poi.ss.usermodel.helpers.BaseRowColShifter
org.apache.poi.ss.usermodel.helpers.ColumnShifter
org.apache.poi.xssf.usermodel.helpers.XSSFColumnShifter
Helper for shifting columns up or down
- Since:
- 4.0.0
-
Field Summary
Fields inherited from class org.apache.poi.ss.usermodel.helpers.ColumnShifter
sheet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidshiftDrawingAnchors(int startColumn, int endColumn, int n) Shift the anchors of the shapes (charts, pictures, ...) in the sheet's drawing along with the columns they are anchored to.voidupdateConditionalFormatting(FormulaShifter formulaShifter) Update conditional formattingvoidupdateFormulas(FormulaShifter formulaShifter) Update formulas.voidupdateHyperlinks(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).voidupdateNamedRanges(FormulaShifter formulaShifter) Update named rangesMethods inherited from class org.apache.poi.ss.usermodel.helpers.ColumnShifter
shiftColumns, shiftMergedRegionsMethods inherited from class org.apache.poi.ss.usermodel.helpers.BaseRowColShifter
shiftRange
-
Constructor Details
-
XSSFColumnShifter
-
-
Method Details
-
updateNamedRanges
Description copied from class:BaseRowColShifterUpdate named ranges- Specified by:
updateNamedRangesin classBaseRowColShifter
-
updateFormulas
Description copied from class:BaseRowColShifterUpdate formulas.- Specified by:
updateFormulasin classBaseRowColShifter
-
updateConditionalFormatting
Description copied from class:BaseRowColShifterUpdate conditional formatting- Specified by:
updateConditionalFormattingin classBaseRowColShifter- Parameters:
formulaShifter- TheFormulaShifterto use
-
updateHyperlinks
Description copied from class:BaseRowColShifterShift the Hyperlink anchors (not the hyperlink text, even if the hyperlink is of type LINK_DOCUMENT and refers to a cell that was shifted). Hyperlinks do not track the content they point to.- Specified by:
updateHyperlinksin classBaseRowColShifter- Parameters:
formulaShifter- the formula shifting policy
-
shiftDrawingAnchors
public void shiftDrawingAnchors(int startColumn, int endColumn, int n) Shift the anchors of the shapes (charts, pictures, ...) in the sheet's drawing along with the columns they are anchored to. A shape is moved when its top-left anchor column is within[startColumn, endColumn]; the whole shape is moved so it keeps its size. Shapes with an absolute anchor are not moved.- Parameters:
startColumn- the column to start shiftingendColumn- the column to end shiftingn- the number of columns to shift- Since:
- 6.0.0
-