|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjtge.util.grid.LinearTileIterator
Provides a linear iterator from the top left to the bottom right tile.
This iterator returns all the non null tile within the grid.
| Constructor Summary | |
LinearTileIterator(IGrid grid)
Create a linear tile iterator. |
|
LinearTileIterator(IGrid grid,
Coordinate coordinate)
Create a linear tile iterator starting a the given coordinate. |
|
| Method Summary | |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LinearTileIterator(IGrid grid)
grid - the grid
public LinearTileIterator(IGrid grid,
Coordinate coordinate)
grid - the gridcoordinate - the coordinate to start from| Method Detail |
public final boolean hasNext()
hasNext in interface java.util.Iteratorpublic final java.lang.Object next()
next in interface java.util.Iteratorpublic final void remove()
remove in interface java.util.Iterator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||