|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Location
Simple class to define an i, j position on a Grid.
Grid
Constructor Summary | |
Location(int i,
int j)
Construct a new Location with the i, j position. |
Method Summary | |
int |
getI()
Returns the i of this. |
int |
getJ()
Returns the j of this. |
void |
setI(int i)
Sets the i of this. |
void |
setJ(int j)
Returns the j of this. |
void |
setLocation(int i,
int j)
Set the i, j of this. |
void |
setLocation(Location l)
Copies the i, j into this. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Location(int i, int j)
i
- the rowj
- the columnMethod Detail |
public int getI()
public int getJ()
public void setI(int i)
public void setJ(int j)
public void setLocation(int i, int j)
i
- the new i of this, ie the new Rowj
- the new j of this, ie the columnpublic void setLocation(Location l)
l
- the Location to copy the i, j from, ie the Row, Column.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |