|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcage.graphics.Point
public class Point
Represents a simple X,Y point as integers.
Field Summary | |
---|---|
int |
x
The x coord. |
int |
y
The y coord. |
Constructor Summary | |
---|---|
Point()
Instantiates a new point. |
|
Point(int x,
int y)
Instantiates a new point with given X, Y values. |
Method Summary | |
---|---|
int |
getX()
Gets the x. |
int |
getY()
Gets the y. |
void |
setX(int xCoord)
Sets the x. |
void |
setY(int yCoord)
Sets the y. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int x
public int y
Constructor Detail |
---|
public Point()
public Point(int x, int y)
x
- the xy
- the yMethod Detail |
---|
public void setX(int xCoord)
xCoord
- the new xpublic void setY(int yCoord)
yCoord
- the new ypublic int getX()
public int getY()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |