Package | Description |
---|---|
org.codefx.libfx.collection.tree.navigate |
Provides an abstraction to navigate tree-like
data structures without requiring them to implement a specific interface.
|
org.codefx.libfx.collection.tree.stream |
Provides the possibility to stream the elements of tree-like data structures.
|
Modifier and Type | Class and Description |
---|---|
class |
ComponentHierarchyNavigator
A
TreeNavigator for an AWT component hierarchy. |
class |
JComponentHierarchyNavigator
A
TreeNavigator for a Swing component hierarchy. |
class |
SceneGraphNavigator
A
TreeNavigator for a JavaFX scene graph. |
Modifier and Type | Method and Description |
---|---|
static <N> Stream<N> |
TreeStreams.backwardDfs(TreeNavigator<N> navigator,
N startNode)
Returns a stream which enumerates nodes in a tree in the order of a backwards depth-first search which starts in the specified
node.
|
static <N> Stream<N> |
TreeStreams.backwardDfsToRoot(TreeNavigator<N> navigator,
N root,
N startNode)
Returns a stream which enumerates nodes in the (sub-)tree rooted in the specified root in the order of a
backwards depth-first search which starts
in the specified node.
|
static <N> Stream<N> |
TreeStreams.dfsFromRoot(TreeNavigator<N> navigator,
N root)
Returns a stream which enumerates nodes in the (sub-)tree rooted in the specified root in the order of a depth-first search.
|
static <N> Stream<N> |
TreeStreams.dfsFromWithin(TreeNavigator<N> navigator,
N startNode)
Returns a stream which enumerates nodes in a tree in the order of a depth-first search which starts in the specified
node.
|
static <N> Stream<N> |
TreeStreams.dfsFromWithin(TreeNavigator<N> navigator,
N root,
N startNode)
Returns a stream which enumerates nodes in the (sub-)tree rooted in the specified root in the order of a depth-first search which starts in the specified
start node.
|
This documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.