Package sc.fiji.snt.gui
Class GuiUtils.Trees
java.lang.Object
sc.fiji.snt.gui.GuiUtils.Trees
- Enclosing class:
GuiUtils
Utility methods for expanding, collapsing, and scrolling
JTrees.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcollapseAllNodes(JTree tree) static voidcollapseNodesOfSameLevel(JTree tree, TreePath path) static voidexpandAllNodes(JTree tree) static voidexpandNodesOfSameLevel(JTree tree, TreePath path) static voidexpandToLevel(JTree tree, int level) static voidscrollDirectlyTo(JTree tree, TreePath path) Centers the row forpathin its enclosing viewport in a single move.static voidscrollToLastRow(JTree tree)
-
Method Details
-
collapseAllNodes
-
expandAllNodes
-
scrollToLastRow
-
expandToLevel
-
collapseNodesOfSameLevel
-
expandNodesOfSameLevel
-
scrollDirectlyTo
Centers the row forpathin its enclosing viewport in a single move.- Parameters:
tree- the tree being scrolledpath- the path to center in view
-