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)
- Check if two pointers are equal.
-
hashCode()
- Hashcode
-
move(int, int)
- Move the point.
-
toString()
- Returns the String representation of this Point's coordinates.
-
translate(int, int)
- Translate 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)
- Move the point.
translate
public void translate(int x,
int y)
- Translate the point.
hashCode
public int hashCode()
- Hashcode
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object obj)
- Check if 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