public class CellReference extends Object
Modifier and Type | Field and Description |
---|---|
private int |
col |
private boolean |
colAbs |
private int |
row
Creates new CellReference
|
private boolean |
rowAbs |
private String |
sheetName |
Constructor and Description |
---|
CellReference(int pRow,
int pCol) |
CellReference(int pRow,
int pCol,
boolean pAbsRow,
boolean pAbsCol) |
CellReference(String cellRef) |
Modifier and Type | Method and Description |
---|---|
private int |
convertColStringToNum(String ref)
takes in a column reference portion of a CellRef and converts it from
ALPHA-26 number format to 0-based base 10.
|
private static String |
convertNumToColString(int col)
takes in a 0-based base-10 column and returns a ALPHA-26 representation
|
short |
getCol() |
int |
getRow() |
String |
getSheetName() |
boolean |
isColAbsolute() |
boolean |
isRowAbsolute() |
private String[] |
separateRefParts(String reference)
Seperates the row from the columns and returns an array.
|
String |
toString() |
private int row
private int col
private String sheetName
private boolean rowAbs
private boolean colAbs
public CellReference(String cellRef)
public CellReference(int pRow, int pCol)
public CellReference(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol)
public int getRow()
public short getCol()
public boolean isRowAbsolute()
public boolean isColAbsolute()
public String getSheetName()
private int convertColStringToNum(String ref)
private String[] separateRefParts(String reference)
private static String convertNumToColString(int col)
Copyright © 2015 Open Microscopy Environment