public class RadiusPickSupport extends RadiusGraphElementAccessor implements PickSupport
| Modifier and Type | Field and Description |
|---|---|
protected HasGraphLayout |
hasGraphLayout |
layout, maxDistance| Constructor and Description |
|---|
RadiusPickSupport() |
RadiusPickSupport(double maxDistance)
the layout will always be provided by the VisualizationViewer
this is supporting picking for
|
RadiusPickSupport(HasGraphLayout hasGraphLayout,
double maxDistance) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
getEdge(double x,
double y)
Gets the edge nearest to the location of the (x,y) location selected.
|
Edge |
getEdge(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.
|
Vertex |
getVertex(double x,
double y)
Gets the vertex nearest to the location of the (x,y) location selected,
within a distance of maxDistance.
|
Vertex |
getVertex(double x,
double y,
double maxDistance)
Gets the vertex nearest to the location of the (x,y) location selected,
within a distance of maxDistance.
|
void |
setHasGraphLayout(HasGraphLayout hasGraphLayout)
called by VisualizationViewer when this PickSupport impl is
added to VisualizationViewer.
|
setLayoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetLayoutprotected HasGraphLayout hasGraphLayout
public RadiusPickSupport(HasGraphLayout hasGraphLayout, double maxDistance)
public RadiusPickSupport()
public RadiusPickSupport(double maxDistance)
maxDistance - public void setHasGraphLayout(HasGraphLayout hasGraphLayout)
setHasGraphLayout in interface PickSupportpublic Vertex getVertex(double x, double y)
getVertex in interface GraphElementAccessorgetVertex in class RadiusGraphElementAccessorpublic Vertex getVertex(double x, double y, double maxDistance)
getVertex in class RadiusGraphElementAccessorx - y - maxDistance - temporarily overrides member maxDistancepublic Edge getEdge(double x, double y)
getEdge in interface GraphElementAccessorgetEdge in class RadiusGraphElementAccessorpublic Edge getEdge(double x, double y, double maxDistance)
getEdge in class RadiusGraphElementAccessorx - y - maxDistance - temporarily overrides member maxDistance