public class WeightedClosestCorner extends Object implements Algorithm
Modifier and Type | Method and Description |
---|---|
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).
|
int |
traverse(Bounds origin,
Direction dir,
List<Node> targets,
TraversalContext context) |
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 rootpublic int traverse(Bounds origin, Direction dir, List<Node> targets, TraversalContext context)
Copyright © 2020. All rights reserved.