public class GXPoint extends Point implements Comparable
Point2D.Double, Point2D.Float| Constructor and Description |
|---|
GXPoint(int x,
int y)
Constructs and initializes a point at the specified (x,y) location in the coordinate space.
|
GXPoint(Point p)
Constructs and initializes a point with the same location as the specified Point object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compare mechanism based on comparing the coordinate from up to down (y),
from left to right (x)
|
String |
toString()
Returns a string representation of this point and its location in the (x,y) coordinate space.
|
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, translateclone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocationpublic GXPoint(Point p)
p - public GXPoint(int x,
int y)
x - y - public int compareTo(Object o)
compareTo in interface ComparableCopyright 2022 Software AG. All rights reserved. Use is subject to license terms.