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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fr
protected java.awt.Point fr
fc
protected java.awt.Point fc
lr
protected java.awt.Point lr
lc
protected java.awt.Point lc
CellsVisibility
public CellsVisibility()
getFirstCell
public java.awt.Point getFirstCell()
- Gets the first visible cell.
- Returns:
- the first visible cell's row and column. java.awt.Point class is used to represent
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:
- the last visible cell's row and column. java.awt.Point class is used to represent
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.
cancelVisibleCells
public void cancelVisibleCells()
- Clears the cells visibility.
hasVisibleCells
public boolean hasVisibleCells()
- Checks if there are any visible cells.
- Returns:
true if there are visible cells; otherwise false.
|