Package com.independentsoft.office.odf
Class CellPosition
java.lang.Object
com.independentsoft.office.odf.CellPosition
The Class CellPosition.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the CellPosition class.CellPosition(int column, int row)Initializes a new instance of the CellPosition class.CellPosition(String position)Initializes a new instance of the CellPosition class.CellPosition(String column, int row)Initializes a new instance of the CellPosition class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the column.intGets the column index.intgetRow()Gets the row.voidSets the column.voidsetColumnIndex(int index)Sets the column index.voidsetRow(int row)Sets the row.
-
Constructor Details
-
CellPosition
public CellPosition()Initializes a new instance of the CellPosition class. -
CellPosition
Initializes a new instance of the CellPosition class.- Parameters:
position- the position
-
CellPosition
public CellPosition(int column, int row)Initializes a new instance of the CellPosition class.- Parameters:
column- the columnrow- the row
-
CellPosition
Initializes a new instance of the CellPosition class.- Parameters:
column- the columnrow- the row
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
getColumnIndex
public int getColumnIndex()Gets the column index.- Returns:
- the column index
-
setColumnIndex
public void setColumnIndex(int index)Sets the column index.- Parameters:
index- the new column index
-
getColumn
Gets the column.- Returns:
- the column
-
setColumn
Sets the column.- Parameters:
column- the new column
-
getRow
public int getRow()Gets the row.- Returns:
- the row
-
setRow
public void setRow(int row)Sets the row.- Parameters:
row- the new row
-