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)
Algorithmpublic Node selectFirst(TraversalContext context)
AlgorithmselectFirst in interface Algorithmcontext - the context that contains the rootpublic Node selectLast(TraversalContext context)
AlgorithmselectLast in interface Algorithmcontext - the context that contains the rootpublic int traverse(Bounds origin, Direction dir, List<Node> targets, TraversalContext context)
Copyright © 2025. All rights reserved.