Class TreeUtil
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.TreeUtil
-
public class TreeUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TreeUtil.RecurseValidator
interface to limit recursion over treestatic class
TreeUtil.VisitFinishedException
static class
TreeUtil.VisitingException
static interface
TreeUtil.Visitor
interface handling visiting each tree path node may throwTreeUtil.VisitFinishedException
or otherTreeUtil.VisitingException
s
-
Constructor Summary
Constructors Constructor Description TreeUtil()
-
Method Summary
-
-
-
Method Detail
-
createSimpleTreeCellRenderer
public static TreeCellRenderer createSimpleTreeCellRenderer(ImageIcon icon)
-
createSimpleTreeCellRenderer
public static TreeCellRenderer createSimpleTreeCellRenderer(String text, ImageIcon icon, Font font)
- Parameters:
text
- null to get the text by calling #toString on the value
-
visit
public static void visit(TreeModel model, TreeUtil.Visitor visitor)
-
visit
public static void visit(TreeModel model, TreeUtil.Visitor visitor, TreeUtil.RecurseValidator rv)
visit Treemodel.Root recursively, limited byTreeUtil.RecurseValidator
(may be null if not needed)
-
visit
public static void visit(TreeModel model, TreePath path, TreeUtil.Visitor visitor)
Visit the path and all subpaths.
-
createTreeModelEvent
public static TreeModelEvent createTreeModelEvent(Object source, Object node, TreeModel model)
-
findTreePath
@Deprecated public static TreePath findTreePath(Object node, TreeModel model)
Deprecated.use- Returns:
- null if the node is not in the tree model
-
findTreePaths
public static TreePath[] findTreePaths(Object[] nodesArray, TreeModel model, TreeUtil.RecurseValidator rv)
find TreePath objects, optimized by limiting recursion withTreeUtil.RecurseValidator
andTreeUtil.VisitFinishedException
-
nodes
public static Collection nodes(TreePath path, TreeModel model)
-
-