public class JTrees extends Object
| Constructor and Description |
|---|
JTrees() |
| Modifier and Type | Method and Description |
|---|---|
static Stream<TreeNode> |
breadthFirstStream(TreeNode node)
Creates a stream of tree node using the Breadth-first search (BFS) algorithm with preorder vertex ordering
starting on given
node. |
static Stream<TreeNode> |
breadthFirstStream(TreeNode node,
boolean parallel)
Creates a stream of tree node using the Breadth-first search (BFS) algorithm with preorder vertex ordering
starting on given
node. |
static void |
initUI(JScrollPane selectedTreePane,
JTree tree) |
static Stream<TreeNode> |
postorderStream(TreeNode node)
Creates a stream of tree node using the Depth-first search (DSF) algorithm with postorder vertex ordering
starting on given
node. |
static Stream<TreeNode> |
postorderStream(TreeNode node,
boolean parallel)
Creates a stream of tree node using the Depth-first search (DSF) algorithm with postorder vertex ordering
starting on given
node. |
static Stream<TreeNode> |
preorderStream(TreeNode node)
Creates a stream of tree node using the Depth-first search (DSF) algorithm with preorder vertex ordering
starting on given
node. |
static Stream<TreeNode> |
preorderStream(TreeNode node,
boolean parallel)
Creates a stream of tree node using the Depth-first search (DSF) algorithm with preorder vertex ordering
starting on given
node. |
public static void initUI(JScrollPane selectedTreePane, JTree tree)
public static Stream<TreeNode> preorderStream(TreeNode node)
node.
Note: the stream is not parallel.
node - node ot walk throughpublic static Stream<TreeNode> preorderStream(TreeNode node, boolean parallel)
node.node - node ot walk throughparallel - to set parallel on the streampublic static Stream<TreeNode> postorderStream(TreeNode node)
node.
Note: the stream is not parallel.
node - node ot walk throughpublic static Stream<TreeNode> postorderStream(TreeNode node, boolean parallel)
node.node - node ot walk throughparallel - to set parallel on the streampublic static Stream<TreeNode> breadthFirstStream(TreeNode node)
node.
Note: the stream is not parallel.
node - node ot walk throughpublic static Stream<TreeNode> breadthFirstStream(TreeNode node, boolean parallel)
node.node - node ot walk throughparallel - to set parallel on the streamCopyright © 2008–2018 Ultreia.io. All rights reserved.