edu.uci.ics.jung.visualization
Interface GraphElementAccessor

All Known Subinterfaces:
PickSupport
All Known Implementing Classes:
RadiusGraphElementAccessor, RadiusPickSupport, ShapePickSupport

public interface GraphElementAccessor

Interface for coordinate-based selection of graph components.

Author:
Tom Nelson, Joshua O'Madadhain

Method Summary
 Edge getEdge(double x, double y)
          Returns an Edge which is associated with the location (x,y).
 Vertex getVertex(double x, double y)
          Returns a Vertex which is associated with the location (x,y).
 void setLayout(Layout layout)
          Sets the Layout that is used to specify the locations of vertices and edges in this instance to layout.
 

Method Detail

getVertex

Vertex getVertex(double x,
                 double y)
Returns a Vertex which is associated with the location (x,y). This is typically determined with respect to the Vertex's location as specified by a Layout.


getEdge

Edge getEdge(double x,
             double y)
Returns an Edge which is associated with the location (x,y). This is typically determined with respect to the Edge's location as specified by a Layout.


setLayout

void setLayout(Layout layout)
Sets the Layout that is used to specify the locations of vertices and edges in this instance to layout.