Class HSSFColumnShifter


@Beta public final class HSSFColumnShifter extends ColumnShifter
Helper for shifting columns up or down
Since:
4.0.0
  • Constructor Details

    • HSSFColumnShifter

      public HSSFColumnShifter(HSSFSheet sh)
  • Method Details

    • updateNamedRanges

      @NotImplemented public void updateNamedRanges(FormulaShifter formulaShifter)
      Description copied from class: BaseRowColShifter
      Update named ranges
      Specified by:
      updateNamedRanges in class BaseRowColShifter
    • updateFormulas

      @NotImplemented public void updateFormulas(FormulaShifter formulaShifter)
      Description copied from class: BaseRowColShifter
      Update formulas.
      Specified by:
      updateFormulas in class BaseRowColShifter
    • updateConditionalFormatting

      @NotImplemented public void updateConditionalFormatting(FormulaShifter formulaShifter)
      Description copied from class: BaseRowColShifter
      Update conditional formatting
      Specified by:
      updateConditionalFormatting in class BaseRowColShifter
      Parameters:
      formulaShifter - The FormulaShifter to use
    • updateHyperlinks

      @NotImplemented public void updateHyperlinks(FormulaShifter formulaShifter)
      Description copied from class: BaseRowColShifter
      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). Hyperlinks do not track the content they point to.
      Specified by:
      updateHyperlinks in class BaseRowColShifter
      Parameters:
      formulaShifter - the formula shifting policy
    • shiftDrawingAnchors

      public void shiftDrawingAnchors(int startColumn, int endColumn, int n)
      Shift the anchors of the shapes (pictures, charts, ...) 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. Comments are not moved by this method.
      Parameters:
      startColumn - the column to start shifting
      endColumn - the column to end shifting
      n - the number of columns to shift
      Since:
      6.0.0