Modifier and Type | Field and Description |
---|---|
protected Node |
cacheLastTraversalNode |
protected Direction |
cacheStartTraversalDirection |
protected Node |
cacheStartTraversalNode |
protected boolean |
reverseDirection |
protected Stack<Node> |
traversalNodeStack |
Modifier and Type | Method and Description |
---|---|
static double |
findMin(double... values) |
protected Node |
getNearestNodeLeftOrRight(Bounds currentB,
Bounds originB,
TraversalContext context,
Direction dir) |
protected Node |
getNearestNodeUpOrDown(Bounds currentB,
Bounds originB,
TraversalContext context,
Direction dir) |
Node |
select(Node node,
Direction dir,
TraversalContext context)
Traverse from owner, in direction dir.
|
Node |
selectFirst(TraversalContext context)
Return the first traversable node for the specified context (root).
|
Node |
selectLast(TraversalContext context)
Return the last traversable node for the specified context (root).
|
protected Node cacheStartTraversalNode
protected Direction cacheStartTraversalDirection
protected boolean reverseDirection
protected Node cacheLastTraversalNode
public Node select(Node node, Direction dir, TraversalContext context)
Algorithm
public Node selectFirst(TraversalContext context)
Algorithm
selectFirst
in interface Algorithm
context
- the context that contains the rootpublic Node selectLast(TraversalContext context)
Algorithm
selectLast
in interface Algorithm
context
- the context that contains the rootprotected Node getNearestNodeUpOrDown(Bounds currentB, Bounds originB, TraversalContext context, Direction dir)
protected Node getNearestNodeLeftOrRight(Bounds currentB, Bounds originB, TraversalContext context, Direction dir)
public static double findMin(double... values)
Copyright © 2020. All rights reserved.