lib.core
Class Point

java.lang.Object
  extended by 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
           
 
Constructor Summary
Point()
           
Point(int x, int y)
           
Point(java.awt.Point p)
           
 
Method Summary
 Point getLocation()
           
 double getX()
           
 double getY()
           
 void setLocation(double x, double y)
           
 void setLocation(int x, int y)
           
 void setLocation(java.awt.Point p)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public short x

y

public short y
Constructor Detail

Point

public Point()

Point

public Point(int x,
             int y)

Point

public Point(java.awt.Point p)
Method Detail

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