at.tuwien.ifs.somtoolbox.visualization.minimumSpanningTree
Class Node
java.lang.Object
at.tuwien.ifs.somtoolbox.visualization.minimumSpanningTree.Node
- All Implemented Interfaces:
- java.lang.Comparable<Node>
public class Node
- extends java.lang.Object
- implements java.lang.Comparable<Node>
- Version:
- $Id: Node.java 3883 2010-11-02 17:13:23Z frank $
- Author:
- Thomas Kern, Magdalena Widl
Field Summary |
private java.lang.String |
label
|
private Unit |
unit
|
private double |
x
|
private double |
y
|
Constructor Summary |
Node(java.lang.String label,
double x,
double y,
Unit unit)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
label
private java.lang.String label
unit
private Unit unit
x
private double x
y
private double y
Node
public Node(java.lang.String label,
double x,
double y,
Unit unit)
compareTo
public int compareTo(Node o)
- Specified by:
compareTo
in interface java.lang.Comparable<Node>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
getLabel
public java.lang.String getLabel()
getUnit
public Unit getUnit()
getX
public double getX()
getY
public double getY()