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

Method isVisible

unused/javax/swing/JTree.java:2089–2099  ·  view source on GitHub ↗

Returns true if the value identified by path is currently viewable, which means it is either the root or all of its parents are expanded. Otherwise, this method returns false. @return true if the node is viewable, otherwise false

(TreePath path)

Source from the content-addressed store, hash-verified

2087 * @return true if the node is viewable, otherwise false
2088 */
2089 public boolean isVisible(TreePath path) {
2090 if(path != null) {
2091 TreePath parentPath = path.getParentPath();
2092
2093 if(parentPath != null)
2094 return isExpanded(parentPath);
2095 // Root.
2096 return true;
2097 }
2098 return false;
2099 }
2100
2101 /**
2102 * Returns the <code>Rectangle</code> that the specified node will be drawn

Callers 1

Calls 1

isExpandedMethod · 0.95

Tested by

no test coverage detected