|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.util.grid.Coordinate
Represents a coordinate in a two dimensions space.
FIXME this class is responsible for the cycles in jtge.util.grid
Field Summary | |
static Coordinate |
ORIGIN
The origin of the coordinate system. |
Constructor Summary | |
Coordinate()
Create a coordinate. |
|
Coordinate(int x,
int y)
Create a coordinate with the supplied x and y. |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object object)
|
int |
getX()
Getter for the x field. |
int |
getY()
Getter for the y field. |
int |
hashCode()
|
void |
setX(int x)
Setter for the x field. |
void |
setY(int y)
Setter for the y field. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Coordinate ORIGIN
Constructor Detail |
public Coordinate()
x and y are initialized with the origin.
public Coordinate(int x, int y)
x
- the x to set.y
- the y to set.Method Detail |
public int getX()
public int getY()
public void setX(int x)
x
- the x to setpublic void setY(int y)
y
- the y to setpublic boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
public java.lang.Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |