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)
| 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 |
no test coverage detected