Interface EdgeAccessor<V,E>
-
- All Known Subinterfaces:
GraphElementAccessor<V,E>
- All Known Implementing Classes:
RadiusGraphElementAccessor
,ShapePickSupport
public interface EdgeAccessor<V,E>
Interface for coordinate-based selection of graph edges.- Author:
- Tom Nelson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description E
getEdge(LayoutModel<V> layoutModel, double x, double y)
Returns the edge, if any, associated with (x, y).E
getEdge(LayoutModel<V> layoutModel, Point p)
-
-
-
Method Detail
-
getEdge
E getEdge(LayoutModel<V> layoutModel, Point p)
- Parameters:
layoutModel
- the source of Edge positionsp
- the pick point- Returns:
- the vertex associated with the pick point
-
getEdge
E getEdge(LayoutModel<V> layoutModel, double x, double y)
Returns the edge, if any, associated with (x, y).- Parameters:
x
- the x coordinate of the pick pointy
- the y coordinate of the pick point- Returns:
- the edge associated with (x, y)
-
-