http://www.eteks.com

com.eteks.jeks
Class JeksCellSet

java.lang.Object
  |
  +--com.eteks.jeks.JeksCellSet
All Implemented Interfaces:
java.io.Serializable

public class JeksCellSet
extends java.lang.Object
implements java.io.Serializable

Contiguous set of table cells.

Since:
Jeks 1.0
Version:
1.0
Author:
Emmanuel Puybaret
See Also:
Serialized Form

Constructor Summary
JeksCellSet(int firstRow, int firstColumn, int lastRow, int lastColumn)
          Constructs a set of cells from the cell at coordinates (firstRow,firstColumn) to the one at coordinates (lastRow,lastColumn).
JeksCellSet(JeksCell firstCell, JeksCell lastCell)
          Constructs a set of cells from the cell firstCell to the cell lastCell.
 
Method Summary
 boolean containsCell(int row, int column)
          Returns true if the cell at coordinates (row,column) is contained in this cells set.
 int getFirstColumn()
          Returns the column index of the first cell of this table cells set.
 int getFirstRow()
          Returns the row index of the first cell of this table cells set.
 int getLastColumn()
          Returns the column index of the last cell of this table cells set.
 int getLastRow()
          Returns the row index of the last cell of this table cells set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JeksCellSet

public JeksCellSet(int firstRow,
                   int firstColumn,
                   int lastRow,
                   int lastColumn)
Constructs a set of cells from the cell at coordinates (firstRow,firstColumn) to the one at coordinates (lastRow,lastColumn). The coordinates don't need to be ordonated (firstRow may be greater than lastRow).
Parameters:
firstRow - The coordinates of the first cell.
firstColumn -  
lastRow - The coordinates of the last cell.
lastColumn -  

JeksCellSet

public JeksCellSet(JeksCell firstCell,
                   JeksCell lastCell)
Constructs a set of cells from the cell firstCell to the cell lastCell.
Parameters:
firstCell - The first cell.
lastCell - The last cell.
Method Detail

getFirstRow

public final int getFirstRow()
Returns the row index of the first cell of this table cells set.
Returns:
The row index.

getFirstColumn

public final int getFirstColumn()
Returns the column index of the first cell of this table cells set.
Returns:
The column index.

getLastRow

public final int getLastRow()
Returns the row index of the last cell of this table cells set.
Returns:
The row index.

getLastColumn

public final int getLastColumn()
Returns the column index of the last cell of this table cells set.
Returns:
The column index.

containsCell

public boolean containsCell(int row,
                            int column)
Returns true if the cell at coordinates (row,column) is contained in this cells set.
Parameters:
row - The coordinates of a cell.
column -  
Returns:
true if this cells set contains the cell.

&cp; 1998-2003 eTeks - All rights reserved