|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjtge.util.grid.LinearIterator
Provides a linear iterator from top left to bottom right coordinate.
| Constructor Summary | |
LinearIterator(IGrid grid)
Create a linear coordinate iterator. |
|
LinearIterator(IGrid grid,
Coordinate coordinate)
Create a linear tile iterator starting from a 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 LinearIterator(IGrid grid)
grid - the grid
public LinearIterator(IGrid grid,
Coordinate coordinate)
grid - the gridcoordinate - the starting coordinate| 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 | ||||||||||