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

Method getRowForPath

unused/javax/swing/JTree.java:2198–2204  ·  view source on GitHub ↗

Returns the row that displays the node identified by the specified path. @param path the TreePath identifying a node @return an integer specifying the display row, where 0 is the first row in the display, or -1 if any of the elements in path are hidden under a collapse

(TreePath path)

Source from the content-addressed store, hash-verified

2196 * are hidden under a collapsed parent.
2197 */
2198 public int getRowForPath(TreePath path) {
2199 TreeUI tree = getUI();
2200
2201 if(tree != null)
2202 return tree.getRowForPath(this, path);
2203 return -1;
2204 }
2205
2206 /**
2207 * Ensures that the node identified by the specified path is

Callers 6

getLeadSelectionRowMethod · 0.95
getRowForLocationMethod · 0.95
propertyChangeMethod · 0.80
getCurrentComponentMethod · 0.80
getCurrentComponentMethod · 0.80

Calls 1

getUIMethod · 0.95

Tested by

no test coverage detected