public class MergeMatrixHelper extends Object implements Serializable
Constructor and Description |
---|
MergeMatrixHelper(List mergeRange,
int frozenRow,
int frozenCol) |
Modifier and Type | Method and Description |
---|---|
void |
addMergeRange(int left,
int top,
int right,
int bottom,
Set toadd,
Set torem) |
void |
addMergeRangeX(int left,
int top,
int right,
int bottom,
Set toadd,
Set torem,
boolean rebuildIndex) |
void |
deleteAffectedMergeRangeByColumn(int col,
Set removed) |
void |
deleteAffectedMergeRangeByRow(int row,
Set removed) |
void |
deleteMergeRange(int left,
int top,
int right,
int bottom,
Set torem) |
void |
deleteMergeRangeX(int left,
int top,
int right,
int bottom,
Set torem,
boolean rebuildIndex) |
int |
getBottomConnectedRow(int row,
int left,
int right) |
int |
getLeftConnectedColumn(int col,
int top,
int bottom) |
MergedRect |
getMergedRect(int id)
Returns
MergedRect MergedRect by id |
MergedRect |
getMergeRange(int row,
int col)
Get a merged range which contains cell(row,col)
|
List<MergedRect> |
getRanges()
Get all merged range.
|
Set |
getRangesByColumn(int col)
Get merged range which contains col
|
int |
getRightConnectedColumn(int col,
int top,
int bottom) |
int |
getTopConnectedRow(int row,
int left,
int right) |
boolean |
isMergeRangeLeftTop(int row,
int col)
Check is (row,col) in one of merge range's left-top
|
void |
update(int frozenRow,
int frozenCol) |
void |
updateMergeRange(int oleft,
int otop,
int oright,
int obottom,
int left,
int top,
int right,
int bottom,
Set toadd,
Set torem) |
public MergeMatrixHelper(List mergeRange, int frozenRow, int frozenCol)
mergeRange
- List of merge rangefrozenRow
- frozenCol
- public void update(int frozenRow, int frozenCol)
public boolean isMergeRangeLeftTop(int row, int col)
public MergedRect getMergeRange(int row, int col)
public List<MergedRect> getRanges()
public MergedRect getMergedRect(int id)
MergedRect
MergedRect by idid
- public Set getRangesByColumn(int col)
col
- column indexpublic int getRightConnectedColumn(int col, int top, int bottom)
public int getLeftConnectedColumn(int col, int top, int bottom)
public int getBottomConnectedRow(int row, int left, int right)
public int getTopConnectedRow(int row, int left, int right)
public void updateMergeRange(int oleft, int otop, int oright, int obottom, int left, int top, int right, int bottom, Set toadd, Set torem)
public void deleteMergeRange(int left, int top, int right, int bottom, Set torem)
public void deleteMergeRangeX(int left, int top, int right, int bottom, Set torem, boolean rebuildIndex)
public void addMergeRange(int left, int top, int right, int bottom, Set toadd, Set torem)
public void addMergeRangeX(int left, int top, int right, int bottom, Set toadd, Set torem, boolean rebuildIndex)
public void deleteAffectedMergeRangeByColumn(int col, Set removed)
public void deleteAffectedMergeRangeByRow(int row, Set removed)
Copyright © 2020. All rights reserved.