Interface JungGraphElementAccessor
- All Known Implementing Classes:
JungRadiusGraphElementAccessor
public interface JungGraphElementAccessor
Interface for coordinate-based selection of graph components.
See JungGraphElementAccessor for further details
- Author:
- M. Altaweel
-
Method Summary
Modifier and TypeMethodDescriptiongetEdge(double x, double y) Returns anEdgewhich is associated with the location(x,y).getVertex(double x, double y) Returns aVertexwhich is associated with the location(x,y).voidsetLayout(JungNetworkLayout layout) Sets theNetworkthat is used to specify the locations of vertices and edges in this instance tolayout.
-
Method Details
-
getVertex
Returns aVertexwhich is associated with the location(x,y). This is typically determined with respect to theVertex's location as specified by aLayout. -
getEdge
Returns anEdgewhich is associated with the location(x,y). This is typically determined with respect to theEdge's location as specified by a Layout. -
setLayout
Sets theNetworkthat is used to specify the locations of vertices and edges in this instance tolayout.
-