Class GuiUtils.Trees

java.lang.Object
sc.fiji.snt.gui.GuiUtils.Trees
Enclosing class:
GuiUtils

public static class GuiUtils.Trees extends Object
Utility methods for expanding, collapsing, and scrolling JTrees.
  • Method Details

    • collapseAllNodes

      public static void collapseAllNodes(JTree tree)
    • expandAllNodes

      public static void expandAllNodes(JTree tree)
    • scrollToLastRow

      public static void scrollToLastRow(JTree tree)
    • expandToLevel

      public static void expandToLevel(JTree tree, int level)
    • collapseNodesOfSameLevel

      public static void collapseNodesOfSameLevel(JTree tree, TreePath path)
    • expandNodesOfSameLevel

      public static void expandNodesOfSameLevel(JTree tree, TreePath path)
    • scrollDirectlyTo

      public static void scrollDirectlyTo(JTree tree, TreePath path)
      Centers the row for path in its enclosing viewport in a single move.
      Parameters:
      tree - the tree being scrolled
      path - the path to center in view