|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexplorer.CoordinateXY
public class CoordinateXY
The class represent a 2D coordinate (x,y)
Constructor Summary | |
---|---|
CoordinateXY(int x,
int y)
Creates am (X,Y) coordinate |
Method Summary | |
---|---|
int |
getX()
Returns the x. |
int |
getY()
Returns the y. |
void |
setX(int x)
Sets the x. |
void |
setY(int y)
Sets the y. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoordinateXY(int x, int y)
x
- The X coordinatey
- The Y coordinateMethod Detail |
---|
public int getX()
public void setX(int x)
x
- The x to set.public int getY()
public void setY(int y)
y
- The y to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |