|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Point
An x,y coordinate.
Field Summary | |
int |
x
The x coordinate. |
int |
y
The y coordinate. |
Constructor Summary | |
Point(int x,
int y)
Constructs and initializes a Point from the specified x and y coordinates. |
Method Summary | |
boolean |
equals(Object obj)
Checks whether two pointers are equal. |
int |
hashCode()
Returns the hashcode for this Point. |
void |
move(int x,
int y)
Moves the point. |
String |
toString()
Returns the String representation of this Point's coordinates. |
void |
translate(int x,
int y)
Translates the point. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public int x
public int y
Constructor Detail |
public Point(int x, int y)
x
- the x coordinatey
- the y coordinateMethod Detail |
public void move(int x, int y)
public void translate(int x, int y)
public int hashCode()
hashCode
in class Object
Hashtable
public boolean equals(Object obj)
equals
in class Object
obj
- the Object to compare with
Hashtable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |