lib.core
Class Point
java.lang.Object
lib.core.Point
- All Implemented Interfaces:
- java.io.Serializable
public class Point
- extends java.lang.Object
- implements java.io.Serializable
A point representing a location in (x, y) coordinate space, specified in short
precision.
- See Also:
Point
,
Serialized Form
Field Summary |
short |
x
|
short |
y
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
public short x
y
public short y
Point
public Point()
Point
public Point(int x,
int y)
Point
public Point(java.awt.Point p)
getLocation
public Point getLocation()
getX
public double getX()
getY
public double getY()
setLocation
public void setLocation(java.awt.Point p)
setLocation
public void setLocation(int x,
int y)
setLocation
public void setLocation(double x,
double y)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object