util
Class Point

java.lang.Object
  extended by util.Point

public class Point
extends java.lang.Object

A geometrical point, with x, y coordinates

Author:
marco furlan

Field Summary
private  java.lang.String s
          The String representation
private  java.lang.Double x
          The x coordinate
private  java.lang.Double y
          The y coordinate
 
Constructor Summary
Point(java.lang.Double x1, java.lang.Double y1)
          Constructor for a new Point
 
Method Summary
 java.lang.String getS()
           
 java.lang.Double getX()
           
 java.lang.Double getY()
           
 void set(java.lang.Double x, java.lang.Double y)
           
 void setS(java.lang.String s)
           
 void setX(java.lang.Double x)
           
 void setY(java.lang.Double y)
           
 java.lang.String toString()
          A String representation for this Point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

private java.lang.Double x
The x coordinate


y

private java.lang.Double y
The y coordinate


s

private java.lang.String s
The String representation

Constructor Detail

Point

public Point(java.lang.Double x1,
             java.lang.Double y1)
Constructor for a new Point

Parameters:
x1 - the x coordinate
y1 - the y coordinate
Method Detail

set

public void set(java.lang.Double x,
                java.lang.Double y)
Parameters:
x - the x
y - the y

getS

public java.lang.String getS()
Returns:
the s

setS

public void setS(java.lang.String s)
Parameters:
s - the s to set

getX

public java.lang.Double getX()
Returns:
the x

setX

public void setX(java.lang.Double x)
Parameters:
x - the x to set

getY

public java.lang.Double getY()
Returns:
the y

setY

public void setY(java.lang.Double y)
Parameters:
y - the y to set

toString

public java.lang.String toString()
A String representation for this Point

Overrides:
toString in class java.lang.Object
Returns:
the String