Package io.keikai.api
Class AreaRefWithType
- java.lang.Object
-
- io.keikai.api.AreaRef
-
- io.keikai.api.AreaRefWithType
-
- All Implemented Interfaces:
Serializable
public class AreaRefWithType extends AreaRef
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) and an extra selection type. (CELL, COL, ROW, ALL)- Since:
- 3.8.3
- Author:
- Henri Chen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CellSelectionType_type-
Fields inherited from class io.keikai.api.AreaRef
_column, _lastColumn, _lastRow, _row
-
-
Constructor Summary
Constructors Constructor Description AreaRefWithType(int row, int column, int lastRow, int lastColumn, CellSelectionType type)AreaRefWithType(String areaReference, CellSelectionType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString()AreaRefcloneSelf()booleancontains(int tRow, int lCol, int bRow, int rCol)booleanequals(Object obj)CellSelectionTypegetSelType()inthashCode()booleanoverlap(int bTopRow, int bLeftCol, int bBottomRow, int bRightCol)booleanoverlap(AreaRefWithType areaRef)voidsetSelType(CellSelectionType type)-
Methods inherited from class io.keikai.api.AreaRef
getColumn, getLastColumn, getLastRow, getRow, setArea, setColumn, setLastColumn, setLastRow, setRow, toString
-
-
-
-
Field Detail
-
_type
protected CellSelectionType _type
-
-
Constructor Detail
-
AreaRefWithType
public AreaRefWithType(int row, int column, int lastRow, int lastColumn, CellSelectionType type)
-
AreaRefWithType
public AreaRefWithType(String areaReference, CellSelectionType type)
-
-
Method Detail
-
contains
public boolean contains(int tRow, int lCol, int bRow, int rCol)
-
overlap
public boolean overlap(int bTopRow, int bLeftCol, int bBottomRow, int bRightCol)
-
overlap
public boolean overlap(AreaRefWithType areaRef)
-
asString
public String asString()
-
setSelType
public void setSelType(CellSelectionType type)
- Parameters:
type-- Since:
- 3.8.3
-
getSelType
public CellSelectionType getSelType()
- Returns:
- Since:
- 3.8.3
-
-