public interface IComputationStrategy
IComputationStrategy
is responsible for computing anchor
positions based on the anchorage Node
, the anchored Node
, and
respective (strategy-specific) parameters
.Modifier and Type | Interface and Description |
---|---|
static class |
IComputationStrategy.Parameter<T>
Base class for all computation parameters that can be passed to an
IComputationStrategy . |
Modifier and Type | Method and Description |
---|---|
Point |
computePositionInScene(Node anchorage,
Node anchored,
Set<IComputationStrategy.Parameter<?>> parameters)
Computes an anchor position based on the given anchorage visual, anchored
visual, and anchored reference point.
|
Set<Class<? extends IComputationStrategy.Parameter<?>>> |
getRequiredParameters()
Returns the types of parameters required by this strategy.
|
Point computePositionInScene(Node anchorage, Node anchored, Set<IComputationStrategy.Parameter<?>> parameters)
anchorage
- The anchorage visual.anchored
- The anchored visual.parameters
- The available computation parameters. strategy.Set<Class<? extends IComputationStrategy.Parameter<?>>> getRequiredParameters()
Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.