/** * Gets the edge nearest to the location of the (x,y) location selected. * Calls the longer form of the call. */ public E getEdge(Layout<V,E> layout, double x, double y) { return getEdge(layout, x, y, this.maxDistance); }
public E getEdge(Layout<V,E> layout, double x, double y) { return getEdge(layout, x, y, this.maxDistance); }
/** * Gets the edge nearest to the location of the (x,y) location selected, * within a distance of <tt>maxDistance</tt>, Iterates through all * visible edges and checks their distance from the click. Override this * method to provide a more efficient implementation. * * @param x the x coordinate of the pick point * @param y the y coordinate of the pick point * @param maxDistance vertices whose from (x, y) is > this cannot be returned * @return Edge closest to the click. */ public E getEdge(Layout<V,E> layout, double x, double y, double maxDistance) { return super.getEdge(layout, x, y, maxDistance); } }