public class CellRegion
extends java.lang.Object
implements java.io.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(java.lang.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(java.lang.String colRef) |
static java.lang.String |
convertIndexToColumnString(int columnIdx) |
java.util.List<CellRegion> |
diff(CellRegion target) |
boolean |
equals(int row,
int column,
int lastRow,
int lastColumn) |
boolean |
equals(java.lang.Object obj) |
int |
getCellCount() |
int |
getColumn() |
int |
getColumnCount() |
int |
getLastColumn() |
int |
getLastRow() |
CellRegion |
getOverlap(CellRegion target) |
java.lang.String |
getReferenceString() |
int |
getRow() |
int |
getRowCount() |
int |
hashCode() |
CellRegion |
intersect(CellRegion target) |
boolean |
isSingle() |
boolean |
overlaps(CellRegion region) |
java.lang.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(java.lang.String areaReference)
public CellRegion(int row, int column, int lastRow, int lastColumn)
public java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getRow()
public int getColumn()
public int getLastRow()
public int getLastColumn()
public int getRowCount()
public int getColumnCount()
public static java.lang.String convertIndexToColumnString(int columnIdx)
public static int convertColumnStringToIndex(java.lang.String colRef)
public java.util.List<CellRegion> diff(CellRegion target)
public CellRegion getOverlap(CellRegion target)
public int getCellCount()
public CellRegion cloneCellRegion()
public CellRegion intersect(CellRegion target)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.