Top Methods
com.sun.javafx.scene.traversal

public Interface TraversalContext

Known Direct Implementers
com.sun.javafx.scene.traversal.TraversalEngine.BaseEngineContext
Imports
javafx.geometry.Bounds, javafx.scene.Node, .Parent, java.util.List

Method Summary

Modifier and TypeMethod and Description
public List<Node>
getAllTargetNodes()

Returns all possible targets within the context

public Parent
getRoot()

The root for this context, Traversal should be done only within the root

public Bounds
getSceneLayoutBounds(Node node)

Returns layout bounds of the Node in the relevant (Sub)Scene.

public 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

public Node
selectInSubtree(Parent
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.
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.

public 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

Method Detail

getAllTargetNodesback to summary
public List<Node> getAllTargetNodes()

Returns all possible targets within the context

getRootback to summary
public Parent getRoot()

The root for this context, Traversal should be done only within the root

getSceneLayoutBoundsback to summary
public Bounds getSceneLayoutBounds(Node node)

Returns layout bounds of the Node in the relevant (Sub)Scene. Note that these bounds are the most important for traversal as they define the final position within the scene.

selectFirstInParentback to summary
public 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

selectInSubtreeback to summary
public 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.

Parameters
subTreeRoot:Parent

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.

selectLastInParentback to summary
public 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