|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPoint
A class to describe a point on a cartesian geometrical grid.
Constructor Summary | |
Point()
Default Constructor for objects of class Point |
|
Point(int x,
int y)
Constructor for objects of class Point |
Method Summary | |
int |
getX()
Accessor method for x |
int |
getY()
Accessor method for y |
void |
setX(int x)
Mutator method for x |
void |
setY(int y)
Mutator method for y |
String |
toString()
toString method for converting this object to a string form |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Point()
public Point(int x, int y)
Method Detail |
public int getX()
public int getY()
public void setX(int x)
x
- The new x locationpublic void setY(int y)
y
- The new y locationpublic String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |