|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Grid2D is a simple two-dimensional Grid, indexed by (i,j).
Nested Class Summary | |
static class |
Grid2D.Dimensions2D
|
Field Summary | |
static Grid2D.Dimensions2D |
DIMENSIONS2D
|
static Dimension |
I
|
static Dimension |
J
|
Method Summary | |
boolean |
containsAddress(int i,
int j)
Return true if the i,j address is on the Grid. |
java.lang.Object |
get(int i,
int j)
Returns the object in the grid at i,j. |
IndexedIterator |
iStripeIterator(int i)
Returns an iterator accross js at i. |
IndexedIterator |
jStripeIterator(int j)
Returns an iterator accross is at j. |
boolean |
sameGrid2DAs(Grid2D grid)
If this has the same contents as grid in the same spots, returns true. |
int |
sizeI()
Return the size of the grid in I. |
int |
sizeJ()
Return the size of the grid in J. |
Methods inherited from interface net.walend.grid.Grid |
addressIterator, addressOf, containsAddress, containsDimension, get, getDimensions, getFillObject, maxAddress, stripeIterator |
Methods inherited from interface net.walend.collection.HasState |
getPrincipleInterface, sameStateAs |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Field Detail |
public static final Grid2D.Dimensions2D DIMENSIONS2D
public static final Dimension I
public static final Dimension J
Method Detail |
public int sizeI()
public int sizeJ()
public boolean containsAddress(int i, int j)
public java.lang.Object get(int i, int j) throws OffGridException
OffGridException
public boolean sameGrid2DAs(Grid2D grid)
public IndexedIterator iStripeIterator(int i) throws OffGridException
OffGridException
public IndexedIterator jStripeIterator(int j) throws OffGridException
OffGridException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |