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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RepastEdge getEdge​(double x, double y)
      Returns an Edge which is associated with the location (x,y).
      Object getVertex​(double x, double y)
      Returns a Vertex which is associated with the location (x,y).
      void setLayout​(JungNetworkLayout layout)
      Sets the Network that is used to specify the locations of vertices and edges in this instance to layout.
    • Method Detail

      • getVertex

        Object getVertex​(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.
      • getEdge

        RepastEdge getEdge​(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.
      • setLayout

        void setLayout​(JungNetworkLayout layout)
        Sets the Network that is used to specify the locations of vertices and edges in this instance to layout.