public interface GraphElementAccessor
Modifier and Type | Method and Description |
---|---|
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 . |
Vertex getVertex(double x, double y)
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
.Edge getEdge(double x, double y)
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.void setLayout(Layout layout)
Layout
that is used to specify the locations
of vertices and edges in this instance to layout
.