samples.preview_new_graphdraw
Class VisVertex

java.lang.Object
  extended by samples.preview_new_graphdraw.Coordinates
      extended by samples.preview_new_graphdraw.VisVertex
Direct Known Subclasses:
SpringLayout.SpringVertex

public class VisVertex
extends Coordinates

Author:
Scott and Danyel

Field Summary
protected  Vertex mVertex
           
 
Fields inherited from class samples.preview_new_graphdraw.Coordinates
x, y
 
Constructor Summary
VisVertex(Vertex v, double x, double y)
           
 
Method Summary
 VisVertex copy()
          Creates a new visvertex with this same location
 double getSquareDistance(double x, double y)
           
 Vertex getVertex()
           
 
Methods inherited from class samples.preview_new_graphdraw.Coordinates
equals, getX, getY, hashCode, offset, scale, setX, setY
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mVertex

protected Vertex mVertex
Constructor Detail

VisVertex

public VisVertex(Vertex v,
                 double x,
                 double y)
Method Detail

getSquareDistance

public double getSquareDistance(double x,
                                double y)

getVertex

public Vertex getVertex()
Returns:

copy

public VisVertex copy()
Creates a new visvertex with this same location

Returns: