public class CellRegion extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
int |
column |
int |
lastColumn |
int |
lastRow |
int |
row |
Constructor and Description |
---|
CellRegion(int row,
int column)
Create a region which only contains 1 cell.
|
CellRegion(int row,
int column,
int lastRow,
int lastColumn)
Create a region with 4 indexes
|
CellRegion(String areaReference)
create a region with cell reference, e.g.
|
Modifier and Type | Method and Description |
---|---|
CellRegion |
cloneCellRegion() |
boolean |
contains(CellRegion region) |
boolean |
contains(int row,
int column) |
static int |
convertColumnStringToIndex(String colRef) |
static String |
convertIndexToColumnString(int columnIdx) |
List<CellRegion> |
diff(CellRegion target) |
boolean |
equals(int row,
int column,
int lastRow,
int lastColumn) |
boolean |
equals(Object obj) |
int |
getCellCount() |
int |
getColumn() |
int |
getColumnCount() |
int |
getLastColumn() |
int |
getLastRow() |
CellRegion |
getOverlap(CellRegion target) |
String |
getReferenceString() |
int |
getRow() |
int |
getRowCount() |
int |
hashCode() |
CellRegion |
intersect(CellRegion target) |
boolean |
isSingle() |
boolean |
overlaps(CellRegion region) |
String |
toString() |
public final int row
public final int column
public final int lastRow
public final int lastColumn
public CellRegion(int row, int column)
public CellRegion(String areaReference)
public CellRegion(int row, int column, int lastRow, int lastColumn)
public String getReferenceString()
public boolean isSingle()
public boolean contains(int row, int column)
public boolean contains(CellRegion region)
public boolean overlaps(CellRegion region)
public boolean equals(int row, int column, int lastRow, int lastColumn)
public int getRow()
public int getColumn()
public int getLastRow()
public int getLastColumn()
public int getRowCount()
public int getColumnCount()
public static String convertIndexToColumnString(int columnIdx)
public static int convertColumnStringToIndex(String colRef)
public List<CellRegion> diff(CellRegion target)
public CellRegion getOverlap(CellRegion target)
public int getCellCount()
public CellRegion cloneCellRegion()
public CellRegion intersect(CellRegion target)
Copyright © 2020. All rights reserved.