Package org.jxls.common
Class CellRange
java.lang.Object
org.jxls.common.CellRange
Represents an Excel cell range
- Author:
- Leonid Vysochyn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidclearCells(int startCol, int endCol, int startRow, int endRow) booleancontains(int row, int col) booleancontainsCommandsInRow(int row) voidexcludeCells(int startCol, int endCol, int startRow, int endRow) intfindTargetRow(int srcRow) getCell(int row, int col) booleanhasChanged(int row, int col) booleanisEmpty(int row, int col) booleanisExcluded(int row, int col) booleanisTransformed(int row, int col) voidmarkAsTransformed(int row, int col) booleanrequiresColShifting(CellRef cell, int startRow, int endRow, int startColShift) voidvoidsetCellShiftStrategy(CellShiftStrategy cellShiftStrategy) voidshiftCellsWithColBlock(int startCol, int endCol, int row, int rowShift, boolean updateColHeights) voidshiftCellsWithRowBlock(int startRow, int endRow, int col, int colShift, boolean updateRowWidths)
-
Constructor Details
-
CellRange
-
-
Method Details
-
getCell
-
getCellShiftStrategy
-
setCellShiftStrategy
-
shiftCellsWithRowBlock
public void shiftCellsWithRowBlock(int startRow, int endRow, int col, int colShift, boolean updateRowWidths) -
requiresColShifting
-
shiftCellsWithColBlock
public void shiftCellsWithColBlock(int startCol, int endCol, int row, int rowShift, boolean updateColHeights) -
excludeCells
public void excludeCells(int startCol, int endCol, int startRow, int endRow) -
clearCells
public void clearCells(int startCol, int endCol, int startRow, int endRow) -
calculateHeight
public int calculateHeight() -
calculateWidth
public int calculateWidth() -
isExcluded
public boolean isExcluded(int row, int col) -
markAsTransformed
public void markAsTransformed(int row, int col) -
isTransformed
public boolean isTransformed(int row, int col) -
contains
public boolean contains(int row, int col) -
containsCommandsInRow
public boolean containsCommandsInRow(int row) -
isEmpty
public boolean isEmpty(int row, int col) -
hasChanged
public boolean hasChanged(int row, int col) -
resetChangeMatrix
public void resetChangeMatrix() -
findTargetRow
public int findTargetRow(int srcRow)
-