public interface TraversalContext
Modifier and Type | Method and Description |
---|---|
List<Node> |
getAllTargetNodes()
Returns all possible targets within the context
|
Parent |
getRoot()
The root for this context, Traversal should be done only within the root
|
Bounds |
getSceneLayoutBounds(Node node)
Returns layout bounds of the Node in the relevant (Sub)Scene.
|
Node |
selectFirstInParent(Parent parent)
If the TraversalEngine does not want to handle traversal inside some inner child (Parent), it can use this method to apply
default algorithm inside that Parent and return the first Node
|
Node |
selectInSubtree(Parent subTreeRoot,
Node from,
Direction dir)
If the TraversalEngine does not want to handle traversal inside some inner child (Parent), it can use this method to apply
default algorithm inside that Parent and return the next Node within the Parent or null if there's no successor.
|
Node |
selectLastInParent(Parent parent)
If the TraversalEngine does not want to handle traversal inside some inner child (Parent), it can use this method to apply
default algorithm inside that Parent and return the last Node
|
Bounds getSceneLayoutBounds(Node node)
Parent getRoot()
Node selectFirstInParent(Parent parent)
Node selectLastInParent(Parent parent)
Node selectInSubtree(Parent subTreeRoot, Node from, Direction dir)
subTreeRoot
- this will be used as a root of the traversal. Should be a Node that is still handled by the current TraversalEngine,
but it's content is not.Copyright © 2020. All rights reserved.