Interface GraphElementAccessor<V,E>
-
- All Known Implementing Classes:
RadiusGraphElementAccessor
public interface GraphElementAccessor<V,E>Interface for coordinate-based selection of graph components.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EgetEdge(Layout<V,E> layout, double x, double y)Returns an edge which is associated with the location(x,y).VgetVertex(Layout<V,E> layout, double x, double y)Returns a vertex which is associated with the location(x,y).java.util.Collection<V>getVertices(Layout<V,E> layout, java.awt.Shape rectangle)Returns the vertices contained withinrectanglerelative tolayout.
-
-
-
Method Detail
-
getVertex
V getVertex(Layout<V,E> layout, 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 aLayout.
-
getVertices
java.util.Collection<V> getVertices(Layout<V,E> layout, java.awt.Shape rectangle)
Returns the vertices contained withinrectanglerelative tolayout.
-
-