Class java.awt.Point
All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.Point
java.lang.Object
|
+----java.awt.Point
- public class Point
- extends Object
An x,y coordinate.
-
x
- The x coordinate.
-
y
- The y coordinate.
-
Point(int, int)
- Constructs and initializes a Point from the specified x and y
coordinates.
-
equals(Object)
- Checks whether two pointers are equal.
-
hashCode()
- Returns the hashcode for this Point.
-
move(int, int)
- Moves the point.
-
toString()
- Returns the String representation of this Point's coordinates.
-
translate(int, int)
- Translates the point.
x
public int x
- The x coordinate.
y
public int y
- The y coordinate.
Point
public Point(int x,
int y)
- Constructs and initializes a Point from the specified x and y
coordinates.
- Parameters:
- x - the x coordinate
- y - the y coordinate
move
public void move(int x,
int y)
- Moves the point.
translate
public void translate(int x,
int y)
- Translates the point.
hashCode
public int hashCode()
- Returns the hashcode for this Point.
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object obj)
- Checks whether two pointers are equal.
- Overrides:
- equals in class Object
toString
public String toString()
- Returns the String representation of this Point's coordinates.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index