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 anEdge
which is associated with the location(x,y)
.getVertex
(double x, double y) Returns aVertex
which is associated with the location(x,y)
.void
setLayout
(JungNetworkLayout layout) Sets theNetwork
that is used to specify the locations of vertices and edges in this instance tolayout
.
-
Method Details
-
getVertex
Returns aVertex
which is associated with the location(x,y)
. This is typically determined with respect to theVertex
's location as specified by aLayout
. -
getEdge
Returns anEdge
which is associated with the location(x,y)
. This is typically determined with respect to theEdge
's location as specified by a Layout. -
setLayout
Sets theNetwork
that is used to specify the locations of vertices and edges in this instance tolayout
.
-