# Package org.eclipse.gef.fx.anchors

This package provides a visual anchor abstraction ( `IAnchor`), a related abstract base implementation (`AbstractAnchor`), as well as concrete anchor implementations ( `StaticAnchor`, `DynamicAnchor`) to manage dynamic positioning of visuals in dependence of others.

See: Description

Interface Summary
IAnchor: An `IAnchor` is a visual anchor that will provide positions for attached `AnchorKey`s (i.e. anchored `Node`s) in local coordinates of the `AnchorKey`'s anchored `Node`.
IComputationStrategy: The `IComputationStrategy` is responsible for computing anchor positions based on the anchorage `Node`, the anchored `Node`, and respective (strategy-specific) `parameters`.

Class Summary
AbstractAnchor: `AbstractAnchor` is the abstract base implementation for `IAnchor`s.
AnchorKey: AnchorKey combines an anchored `Node` with a `String` qualifier to identify an anchor target.
ChopBoxStrategy: A specific projection strategy that is based on a center-projection of the given reference point.
DynamicAnchor: The `DynamicAnchor` computes anchor positions through a `IComputationStrategy`.
DynamicAnchor.AnchorageReferenceGeometry: An `IComputationStrategy.Parameter` that encapsulates an (anchorage) reference geometry.
DynamicAnchor.AnchorageReferencePosition: An `IComputationStrategy.Parameter` that encapsulates an (anchorage) reference point.
DynamicAnchor.AnchoredReferencePoint: An `IComputationStrategy.Parameter` that encapsulates a projection reference point.
DynamicAnchor.PreferredOrientation: An `IComputationStrategy.Parameter` that encapsulates the preferred orientation to be used for orthogonal projections.
IComputationStrategy.Parameter<T>: Base class for all computation parameters that can be passed to an `IComputationStrategy`.
OrthogonalProjectionStrategy: An `IComputationStrategy` that computes anchor position by orthogonally projecting the respective anchored reference point to the outline of the anchorage reference geometry so that the respective point has minimal distance to the anchored reference point and resembles the same x- (vertical projection) or y-coordinate (horizontal projection).
ProjectionStrategy: An `IComputationStrategy` that computes anchor position by projecting the respective anchored reference point to the outline of the anchorage reference geometry so that the respective point has minimal distance to the anchored reference point.
StaticAnchor: An `StaticAnchor` provides a position for each `AnchorKey`, based on a reference position relative to the anchorage `Node`, to which the `StaticAnchor` is bound, or based on a (global) static reference position in case the `StaticAnchor` is unbound.

Enum Summary
IComputationStrategy.Parameter.Kind: Indicates whether the parameter value can be shared to compute positions of all attached anchors or not.

## Package org.eclipse.gef.fx.anchors Description

This package provides a visual anchor abstraction ( `IAnchor`), a related abstract base implementation (`AbstractAnchor`), as well as concrete anchor implementations ( `StaticAnchor`, `DynamicAnchor`) to manage dynamic positioning of visuals in dependence of others.