Returns the path to the node that is closest to x,y. If
there is nothing currently visible this will return
null
,
otherwise it'll always return a valid path.
If you need to test if the
returned object is exactly at x, y you should get the bounds for
the returned path and test x, y against that.
Returns:
the
TreePath
closest to the specified point
Parameters:
-
x - the horizontal component of the desired location
-
y - the vertical component of the desired location