MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getAccessibleAt

Method getAccessibleAt

unused/javax/swing/JTree.java:4344–4352  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

getAccessibleAtMethod · 0.45

Calls 1

Tested by

no test coverage detected