ilog.cpl.table
Class IlpCellCoordinates

java.lang.Object
  extended by ilog.cpl.table.IlpCellCoordinates

public class IlpCellCoordinates
extends Object

This class is used to represent the coordinates (row/column) of a cell in an IlpTable.

Since:
JTGO 3.0

Constructor Summary
IlpCellCoordinates()
          Creates cell coordinates with default value -1 for row and column.
IlpCellCoordinates(int rowIndex, int columnIndex)
          Creates cell coordinates with the given values for the row and the column.
 
Method Summary
 boolean equals(Object anObject)
          Compares the coordinates of this object with the specified object.
 int getColumnIndex()
          Returns the column index of the cell coordinates.
 int getRowIndex()
          Returns the row index of the cell coordinates.
 String toString()
          Returns a string representation of this cell's coordinates.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlpCellCoordinates

public IlpCellCoordinates()
Creates cell coordinates with default value -1 for row and column.


IlpCellCoordinates

public IlpCellCoordinates(int rowIndex,
                          int columnIndex)
Creates cell coordinates with the given values for the row and the column.

Parameters:
rowIndex - The row index of the cell coordinates.
columnIndex - The column index of the cell coordinates.
Method Detail

getRowIndex

public int getRowIndex()
Returns the row index of the cell coordinates.

Returns:
The row index of the cell coordinates.

getColumnIndex

public int getColumnIndex()
Returns the column index of the cell coordinates.

Returns:
The column index of the cell coordinates.

equals

public boolean equals(Object anObject)
Compares the coordinates of this object with the specified object. Returns true if the argument is not null and is an IlpCellCoordinates object with the same values (row and column index) as this object.

Overrides:
equals in class Object
Parameters:
anObject - The object to be compared with this IlpCellCoordinates object.
Returns:
true if the IlpCellCoordinates objects are equal, false otherwise.

toString

public String toString()
Returns a string representation of this cell's coordinates. For example, new IlpTable.CellCoordinates(3, 4).toString(); returns the string (3,4).

Overrides:
toString in class Object
Returns:
A string representation of this cell's coordinates.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.