public final class FormulaShifter extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
adjustFormula(Ptg[] ptgs,
int currentExternSheetIx) |
static FormulaShifter |
createForColumnShift(int externSheetIndex,
int firstMovedColIndex,
int lastMovedColIndex,
int numberOfColsToMove) |
static FormulaShifter |
createForRowShift(int externSheetIndex,
int firstMovedRowIndex,
int lastMovedRowIndex,
int numberOfRowsToMove) |
static FormulaShifter |
createForSheetShift(int srcSheetIndex,
int dstSheetIndex) |
String |
toString() |
public static FormulaShifter createForRowShift(int externSheetIndex, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove)
public static FormulaShifter createForSheetShift(int srcSheetIndex, int dstSheetIndex)
public boolean adjustFormula(Ptg[] ptgs, int currentExternSheetIx)
ptgs
- - if necessary, will get modified by this methodcurrentExternSheetIx
- - the extern sheet index of the sheet that contains the formula being adjustedtrue
if a change was made to the formula tokenspublic static FormulaShifter createForColumnShift(int externSheetIndex, int firstMovedColIndex, int lastMovedColIndex, int numberOfColsToMove)
Copyright © 2020. All rights reserved.