Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.uci.ics.jung.visualization
Interface GraphElementAccessor

All Known Subinterfaces:
  PickSupport

All Known Implementing Classes:
  RadiusGraphElementAccessor, RadiusPickSupport, ShapePickSupport

public interface GraphElementAccessor

Interface for coordinate-based selection of graph components.

Author:
  Tom Nelson, Joshua O'Madadhain

Method Summary
`Edge` | `getEdge(double x, double y)` Returns an `Edge` which is associated with the location `(x,y)`.
`Vertex` | `getVertex(double x, double y)` Returns a `Vertex` which is associated with the location `(x,y)`.
`void` | `setLayout(Layout layout)` Sets the `Layout` that is used to specify the locations of vertices and edges in this instance to `layout`.

Method Detail

### getVertex

    public Vertex 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

    public Edge 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

    public void setLayout(Layout layout)

  Sets the `Layout` that is used to specify the locations of vertices and edges in this instance to `layout`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD