# Package org.eclipse.gef.fx.anchors

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.

Related Packages
Package
Description
org.eclipse.gef.fx
This package provides the bundle activator ( `FxBundle`).
org.eclipse.gef.fx.jface
This package provides a `DialogCellEditor` to edit `Paint` values, and a related specific `Dialog`.
org.eclipse.gef.fx.listeners
This package provides a `VisualChangeListener`, which can be used to recognize visual changes of one observed `Node` visual relative to an observer visual.
org.eclipse.gef.fx.nodes
This package provides: an adaptation of an `IGeometry` to `Node`: `GeometryNode` a connection abstraction that is based on `IAnchor`: `Connection` a visual to display an image which is overlayed by another image on mouse hover: `HoverOverlayImageView` a visual providing a scrollable infinite canvas with a background grid: `InfiniteCanvas`
org.eclipse.gef.fx.utils
This package provides utilities for picking nodes, querying the pointer location, and for applying transformations.
Class
Description
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.
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`.
IComputationStrategy.Parameter<T>
Base class for all computation parameters that can be passed to an `IComputationStrategy`.
IComputationStrategy.Parameter.Kind
Indicates whether the parameter value can be shared to compute positions of all attached anchors or not.
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.