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
      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).
      java.util.Collection<V> getVertices​(Layout<V,​E> layout, java.awt.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

        java.util.Collection<V> getVertices​(Layout<V,​E> layout,
                                            java.awt.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.