All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.awt.Point
Point
class represents a location in a
two-dimensional (x, y) coordinate space.
Point
object.
dx
along the x axis and dy
along the y axis so that it now represents the point
(x
+
dx
,
y
+
dy
).
public int x
public int y
public Point()
public Point(Point p)
Point
object.
public Point(int x,
int y)
public Point getLocation()
getLocation
method of Component
.
public void setLocation(Point p)
setLocation
method of Component
.
public void setLocation(int x,
int y)
This method is included for completeness, to parallel the
setLocation
method of Component
.
Its behavior is identical with move(int, int)
.
public void move(int x,
int y)
setLocation(int, int)
.
public void translate(int x,
int y)
dx
along the x axis and dy
along the y axis so that it now represents the point
(x
+
dx
,
y
+
dy
).
public int hashCode()
public boolean equals(Object obj)
Point
are equal if the values of their
x
and y
member fields, representing
their position in the coordinate space, are the same.
true
if the object to be compared is
an instance of Point
and has
the same values; false
otherwise.
public String toString()
All Packages Class Hierarchy This Package Previous Next Index