public class RangeAnchor extends Object implements kk.json.JSONAware
Constructor and Description |
---|
RangeAnchor(int row,
int column,
int lastRow,
int lastColumn)
Constructs a range anchor with given row, column, lastRow, and lastColumn.
|
RangeAnchor(int row,
int column,
int rowOffset,
int columnOffset,
int lastRow,
int lastColumn,
int lastRowOffset,
int lastColumnOffset)
Constructs a range anchor with given row, column, lastRow, lastColumn, and its offsets.
|
RangeAnchor(String a1Notation)
Constructs a range anchor with given a1Notation.
|
RangeAnchor(String a1Notation,
int rowOffset,
int columnOffset,
int lastRowOffset,
int lastColumnOffset)
Constructs a range anchor with given a1Notation and its offsets.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Return the index of the column.
|
int |
getColumnOffset()
Returns the offset of the column.
|
int |
getLastColumn()
Returns the index of the last column.
|
int |
getLastColumnOffset()
Returns the offset of the last column.
|
int |
getLastRow()
Returns the index of the last row.
|
int |
getLastRowOffset()
Returns the offset of the last row.
|
int |
getRow()
Returns the index of the row.
|
int |
getRowOffset()
Returns the offset of the row.
|
String |
toJSONString() |
String |
toString() |
public RangeAnchor(int row, int column, int lastRow, int lastColumn)
row
- the row index.column
- the column index.lastRow
- the lastRow index.lastColumn
- the lastColumn index.public RangeAnchor(String a1Notation)
a1Notation
- a1 notation.public RangeAnchor(String a1Notation, int rowOffset, int columnOffset, int lastRowOffset, int lastColumnOffset)
a1Notation
- a1 notation.rowOffset
- the row offset in pixels.columnOffset
- the column offset in pixels.lastRowOffset
- the last row offset in pixels.lastColumnOffset
- the last column offset in pixels.public RangeAnchor(int row, int column, int rowOffset, int columnOffset, int lastRow, int lastColumn, int lastRowOffset, int lastColumnOffset)
row
- the row index.column
- the column index.rowOffset
- the row offset in pixels.columnOffset
- the column offset in pixels.lastRow
- the lastRow index.lastColumn
- the lastColumn index.lastRowOffset
- the last row offset in pixels.lastColumnOffset
- the last column offset in pixels.public int getRow()
public int getColumn()
public int getLastRow()
public int getLastColumn()
public int getRowOffset()
public int getColumnOffset()
public int getLastRowOffset()
public int getLastColumnOffset()
public String toJSONString()
toJSONString
in interface kk.json.JSONAware
Copyright © 2018. All rights reserved.