edu.uci.ics.jung.algorithms.layout
Interface GraphElementAccessor<V,E>

All Known Implementing Classes:
ClassicPickSupport, ClosestShapePickSupport, LayoutLensShapePickSupport, RadiusGraphElementAccessor, RadiusPickSupport, ShapePickSupport, ViewLensShapePickSupport

public interface GraphElementAccessor<V,E>

Interface for coordinate-based selection of graph components.

Author:
Tom Nelson, Joshua O'Madadhain

Method Summary
 E getEdge(Layout<V,E> layout, double x, double y)
          Returns an edge which is associated with the location (x,y).
 V getVertex(Layout<V,E> layout, double x, double y)
          Returns a vertex which is associated with the location (x,y).
 Collection<V> getVertices(Layout<V,E> layout, Shape rectangle)
          Returns the vertices contained within rectangle relative to layout.
 

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 a Layout.


getVertices

Collection<V> getVertices(Layout<V,E> layout,
                          Shape rectangle)
Returns the vertices contained within rectangle relative to layout.


getEdge

E getEdge(Layout<V,E> layout,
          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.



Copyright © 2009. All Rights Reserved.