org.zaval.lw.grid
Class CellsVisibility

java.lang.Object
  |
  +--org.zaval.lw.grid.CellsVisibility

public class CellsVisibility
extends java.lang.Object

The class is used to represent grid cells visibility. Using the class it is possible to determine what cells are visible, locations of the visible cells and so on.


Field Summary
protected  java.awt.Point fc
           
protected  java.awt.Point fr
           
protected  java.awt.Point lc
           
protected  java.awt.Point lr
           
 
Constructor Summary
CellsVisibility()
           
 
Method Summary
 java.awt.Point getFirstCell()
          Gets the first visible cell.
 java.awt.Point getFirstCellLoc()
          Gets the first visible cell location.
 java.awt.Point getLastCell()
          Gets the last visible cell.
 java.awt.Point getLastCellLoc()
          Gets the last visible cell location.
 boolean hasVisibleCells()
          Checks if there are any visible cells.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fr

protected java.awt.Point fr

fc

protected java.awt.Point fc

lr

protected java.awt.Point lr

lc

protected java.awt.Point lc
Constructor Detail

CellsVisibility

public CellsVisibility()
Method Detail

getFirstCell

public java.awt.Point getFirstCell()
Gets the first visible cell.
Returns:
a first visible cell's row and column. java.awt.Point class is used to represent the first visible cell where x field is the cell row and y field is the cell column.

getLastCell

public java.awt.Point getLastCell()
Gets the last visible cell.
Returns:
a last visible cell's row and column. java.awt.Point class is used to represent the last visible cell where x field is the cell row and y field is the cell column.

getFirstCellLoc

public java.awt.Point getFirstCellLoc()
Gets the first visible cell location.
Returns:
a first visible cell location. java.awt.Point class is used to represent the location where x field is the x coordinate and y field is the y coordinate.

getLastCellLoc

public java.awt.Point getLastCellLoc()
Gets the last visible cell location.
Returns:
a last visible cell location. java.awt.Point class is used to represent the location where x field is the x coordinate and y field is the y coordinate.

hasVisibleCells

public boolean hasVisibleCells()
Checks if there are any visible cells.
Returns:
true if there are visible cells; otherwise false.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org