public class RadiusPickSupport<V,E>
extends edu.uci.ics.jung.algorithms.layout.RadiusGraphElementAccessor<V,E>
implements edu.uci.ics.jung.algorithms.layout.GraphElementAccessor<V,E>
Constructor and Description |
---|
RadiusPickSupport() |
RadiusPickSupport(double maxDistance)
the layout will always be provided by the VisualizationViewer
this is supporting picking for
|
Modifier and Type | Method and Description |
---|---|
E |
getEdge(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
double x,
double y)
Gets the edge nearest to the location of the (x,y) location selected.
|
E |
getEdge(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
double x,
double y,
double maxDistance)
Gets the edge nearest to the location of the (x,y) location selected,
within a distance of maxDistance, Iterates through all
visible edges and checks their distance from the click.
|
V |
getVertex(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
double x,
double y)
Gets the vertex nearest to the location of the (x,y) location selected,
within a distance of maxDistance.
|
V |
getVertex(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
double x,
double y,
double maxDistance)
Gets the vertex nearest to the location of the (x,y) location selected,
within a distance of maxDistance.
|
getVertices
public RadiusPickSupport()
public RadiusPickSupport(double maxDistance)
maxDistance
- public V getVertex(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, double x, double y)
public V getVertex(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, double x, double y, double maxDistance)
public E getEdge(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, double x, double y)
public E getEdge(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, double x, double y, double maxDistance)