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) voidupdateFormulas(FormulaShifter formulaShifter) voidupdateHyperlinks(FormulaShifter formulaShifter) voidupdateNamedRanges(FormulaShifter formulaShifter) Methods 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
- Specified by:
updateNamedRangesin classBaseRowColShifter
-
updateFormulas
- Specified by:
updateFormulasin classBaseRowColShifter
-
updateConditionalFormatting
- Specified by:
updateConditionalFormattingin classBaseRowColShifter
-
updateHyperlinks
- Specified by:
updateHyperlinksin classBaseRowColShifter
-
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
-