Class BattleDock.TreeUtils

  • Enclosing class:
    BattleDock

    public static class BattleDock.TreeUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void expandOrCollapsePath​(javax.swing.JTree jTree, javax.swing.tree.TreePath treePath, int level, int currentLevel, boolean expand)  
      static void expandOrCollapseToLevel​(javax.swing.JTree jTree, javax.swing.tree.TreePath treePath, int level, boolean expand)
      Expands/Collapse specified tree to a certain level.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreeUtils

        public TreeUtils()
    • Method Detail

      • expandOrCollapseToLevel

        public static void expandOrCollapseToLevel​(javax.swing.JTree jTree,
                                                   javax.swing.tree.TreePath treePath,
                                                   int level,
                                                   boolean expand)
        Expands/Collapse specified tree to a certain level.
        Parameters:
        jTree - jtree to expand to a certain level
        level - the level of expansion
      • expandOrCollapsePath

        public static void expandOrCollapsePath​(javax.swing.JTree jTree,
                                                javax.swing.tree.TreePath treePath,
                                                int level,
                                                int currentLevel,
                                                boolean expand)