Packages This Package Prev Next Index
public class java.awt.Point extends java.lang.Object (I-§1.12) { // Fields public int x; §1.34.1 public int y; §1.34.2 // Constructors public Point(int x, int y); §1.34.3 // Methods public boolean equals(Object obj); §1.34.4 public int hashCode(); §1.34.5 public void move(int x, int y); §1.34.6 public String toString(); §1.34.7 public void translate(int dx, int dy); §1.34.8 }A point represents an coordinate.
public int x
public int y
public Point(int x, int y)
x
-
the x coordinate
y
-
the y coordinate
public boolean equals(Object obj)
obj
-
the object to compare with.
public int hashCode()
public void move(int x, int y)
x
-
the new x coordinate
y
-
the new y coordinate
public String toString()
public void translate(int dx, int dy)
dx
-
the amount to move this point to the right
dy
-
the amount to move this point downward
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)