The Point class encapsulates a pair of x and y coordinates within a single object.
public class java.awt.Point
extends java.lang.Object
implements java.io.Serializable {
// Variables
public int x;
public int y;
// Constructors
public Point();
public Point (int width, int height);
public Point (Point p);
// Instance Methods
public boolean equals (Object object);
public Point getLocation();
public int hashCode();
public void move (int x, int y);
public void setLocation (int x, int y);
public void setLocation (Point p);
public String toString();
public void translate (int deltax, int deltay);
}
The coordinate that represents the horizontal position.
The coordinate that represents the vertical position.

Constructs a Point object initialized to (0, 0).
Coordinate that represents the horizontal position.
Coordinate that represents the vertical position.
Constructs a Point object with an initial position of (x, y).

Initial position.
Constructs a Point object with the same position as p.
The object to compare.
true if both points have the same x and y coordinates, false otherwise.
Object.equals()
Compares two different Point instances for equivalence.

Position of this point.
Gets the current position of this Point.
A hashcode to use the Point is used as a key in a Hashtable.
Object.hashCode()
Generates a hashcode for the Point.
The new x coordinate.
The new y coordinate.
Changes the Point's location to (x, y).

The new x coordinate.
The new y coordinate.
Changes the Point's location to (x, y).

The new location.
Changes the Point's location to p.
A string representation of the Point object.
Object.toString()
Amount to move horizontally.
Amount to move vertically.
Moves the Point to the location (x+deltax, y+deltay).
Object, String