public interface GraphElementAccessor<V,E>
| Modifier and Type | Method and Description |
|---|---|
E |
getEdge(Layout<V,E> layout,
double x,
double y) |
V |
getVertex(Layout<V,E> layout,
double x,
double y)
Returns the vertex, if any, associated with (x, y).
|
Collection<V> |
getVertices(Layout<V,E> layout,
Shape rectangle) |
V getVertex(Layout<V,E> layout, double x, double y)
layout - the layout instance that records the positions for all verticesx - the x coordinate of the pick pointy - the y coordinate of the pick pointCollection<V> getVertices(Layout<V,E> layout, Shape rectangle)
layout - the layout instance that records the positions for all verticesrectangle - the region in which the returned vertices are locatedlayout
are contained within rectangleE getEdge(Layout<V,E> layout, double x, double y)
layout - the context in which the location is definedx - the x coordinate of the locationy - the y coordinate of the location(x,y)
as given by layout, generally by reference to the edge's endpointsCopyright © 2016. All rights reserved.