Top Constructors Methods
com.sun.javafx.scene.traversal

public Class ContainerTabOrder

extends Object
implements Algorithm
Class Inheritance
All Implemented Interfaces
com.sun.javafx.scene.traversal.Algorithm
Imports
java.util.List, javafx.geometry.Bounds, javafx.scene.Node

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private double
centerSideDistance(Direction dir, Bounds cur, Bounds tgt)

Computes the side distance from current center to target center.

private double
cornerSideDistance(Direction dir, Bounds cur, Bounds tgt)

Computes the side distance between the closest corners of the current and target.

private boolean
private double
outDistance(Direction dir, Bounds cur, Bounds tgt)

Compute the out-distance to the near edge of the target in the traversal direction.

public Node
select(Node node, Direction dir, TraversalContext context)

Implements com.sun.javafx.scene.traversal.Algorithm.select.

Traverse from owner, in direction dir.

public Node
selectFirst(TraversalContext context)

Implements com.sun.javafx.scene.traversal.Algorithm.selectFirst.

Return the first traversable node for the specified context (root).

public Node
selectLast(TraversalContext context)

Implements com.sun.javafx.scene.traversal.Algorithm.selectLast.

Return the last traversable node for the specified context (root).

private int
trav2D(Bounds origin, Direction dir, List<Node> peers, TraversalContext context)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ContainerTabOrderback to summary
pack-priv ContainerTabOrder()

Method Detail

centerSideDistanceback to summary
private double centerSideDistance(Direction dir, Bounds cur, Bounds tgt)

Computes the side distance from current center to target center. Always positive. This is only used for on-axis nodes.

cornerSideDistanceback to summary
private double cornerSideDistance(Direction dir, Bounds cur, Bounds tgt)

Computes the side distance between the closest corners of the current and target. Always positive. This is only used for off-axis nodes.

isOnAxisback to summary
private boolean isOnAxis(Direction dir, Bounds cur, Bounds tgt)
outDistanceback to summary
private double outDistance(Direction dir, Bounds cur, Bounds tgt)

Compute the out-distance to the near edge of the target in the traversal direction. Negative means the near edge is "behind".

selectback to summary
public Node select(Node node, Direction dir, TraversalContext context)

Implements com.sun.javafx.scene.traversal.Algorithm.select.

Doc from com.sun.javafx.scene.traversal.Algorithm.select.

Traverse from owner, in direction dir. Return a the new target Node or null if no suitable target is found. Typically, the implementation of override algorithm handles only parent's direct children and looks like this: 1) Find the nearest parent of the "owner" that is handled by this algorithm (i.e. it's a direct child of the root). 2) select the next node within this direct child using the context.selectInSubtree() and return it 2a) if no such node exists, move to the next direct child in the direction (this is where the different order of direct children is defined) or if direct children are not traversable, the select the first node in the next direct child

Annotations
@Override
selectFirstback to summary
public Node selectFirst(TraversalContext context)

Implements com.sun.javafx.scene.traversal.Algorithm.selectFirst.

Doc from com.sun.javafx.scene.traversal.Algorithm.selectFirst.

Return the first traversable node for the specified context (root).

Annotations
@Override
selectLastback to summary
public Node selectLast(TraversalContext context)

Implements com.sun.javafx.scene.traversal.Algorithm.selectLast.

Doc from com.sun.javafx.scene.traversal.Algorithm.selectLast.

Return the last traversable node for the specified context (root).

Annotations
@Override
trav2Dback to summary
private int trav2D(Bounds origin, Direction dir, List<Node> peers, TraversalContext context)