public class GXPoint
extends java.awt.Point
implements java.lang.Comparable
Constructor and Description |
---|
GXPoint(int x,
int y)
Constructs and initializes a point at the specified (x,y) location in the coordinate space.
|
GXPoint(java.awt.Point p)
Constructs and initializes a point with the same location as the specified Point object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compare mechanism based on comparing the coordinate from up to down (y),
from left to right (x)
|
java.lang.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, translate
public GXPoint(java.awt.Point p)
p
- public GXPoint(int x, int y)
x
- y
- public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.awt.Point
Copyright 2020 Software AG. All rights reserved. Use is subject to license terms.