Package io.keikai.api
Class AreaRef
java.lang.Object
io.keikai.api.AreaRef
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AreaRefWithType,MergedRect
A class that represents an area reference with 4 value :
row(top row), column(left column), last row(bottom row) and last column(right column)
- Since:
- 3.0.0
- Author:
- Dennis.Chen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()booleancontains(int tRow, int lCol, int bRow, int rCol) booleanintintintintgetRow()inthashCode()booleanoverlap(int bTopRow, int bLeftCol, int bBottomRow, int bRightCol) voidsetArea(int row, int column, int lastRow, int lastColumn) voidsetColumn(int column) voidsetLastColumn(int lastColumn) voidsetLastRow(int lastRow) voidsetRow(int row) toString()
-
Field Details
-
_column
protected int _column -
_row
protected int _row -
_lastColumn
protected int _lastColumn -
_lastRow
protected int _lastRow
-
-
Constructor Details
-
AreaRef
public AreaRef() -
AreaRef
public AreaRef(int row, int column, int lastRow, int lastColumn) -
AreaRef
-
-
Method Details
-
setArea
public void setArea(int row, int column, int lastRow, int lastColumn) -
getColumn
public int getColumn() -
setColumn
public void setColumn(int column) -
getRow
public int getRow() -
setRow
public void setRow(int row) -
getLastColumn
public int getLastColumn() -
setLastColumn
public void setLastColumn(int lastColumn) -
getLastRow
public int getLastRow() -
setLastRow
public void setLastRow(int lastRow) -
cloneSelf
-
contains
public boolean contains(int tRow, int lCol, int bRow, int rCol) -
overlap
public boolean overlap(int bTopRow, int bLeftCol, int bBottomRow, int bRightCol) -
asString
- Returns:
- reference string, e.x A1:B2
-
toString
-
hashCode
public int hashCode() -
equals
-