at.tuwien.ifs.somtoolbox.visualization.clustering
Class LabelCoordinates

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
          extended by at.tuwien.ifs.somtoolbox.visualization.clustering.LabelCoordinates
All Implemented Interfaces:
Serializable, Cloneable

public class LabelCoordinates
extends Point

Version:
$Id: LabelCoordinates.java 3358 2010-02-11 14:35:07Z mayer $
Author:
Doris Baum
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
 
Field Summary
 String label
           
private static long serialVersionUID
           
 
Fields inherited from class java.awt.Point
x, y
 
Constructor Summary
LabelCoordinates()
           
LabelCoordinates(int x, int y, String label)
           
 
Method Summary
 double distance(LabelCoordinates other)
          Calculate euclidean distance between this point and the other point
 
Methods inherited from class java.awt.Point
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, toString, translate
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

label

public String label
Constructor Detail

LabelCoordinates

public LabelCoordinates()

LabelCoordinates

public LabelCoordinates(int x,
                        int y,
                        String label)
Method Detail

distance

public double distance(LabelCoordinates other)
                throws MetricException
Calculate euclidean distance between this point and the other point

Throws:
MetricException