Returns the Accessible child, if one exists, contained at the local coordinate Point . Otherwise returns null . @param p point in local coordinates of this Accessible @return the Accessible , if it exists, at the specified location; e
(Point p)
| 4342 | * at the specified location; else <code>null</code> |
| 4343 | */ |
| 4344 | public Accessible getAccessibleAt(Point p) { |
| 4345 | TreePath path = getClosestPathForLocation(p.x, p.y); |
| 4346 | if (path != null) { |
| 4347 | // JTree.this is NOT the parent; parent will get computed later |
| 4348 | return new AccessibleJTreeNode(JTree.this, path, null); |
| 4349 | } else { |
| 4350 | return null; |
| 4351 | } |
| 4352 | } |
| 4353 | |
| 4354 | /** |
| 4355 | * Returns the number of top-level children nodes of this |
no test coverage detected