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.-
ClassDescription
AbstractAnchor
is the abstract base implementation forIAnchor
s.AnchorKey combines an anchoredNode
with aString
qualifier to identify an anchor target.A specific projection strategy that is based on a center-projection of the given reference point.TheDynamicAnchor
computes anchor positions through aIComputationStrategy
.AnIComputationStrategy.Parameter
that encapsulates an (anchorage) reference geometry.AnIComputationStrategy.Parameter
that encapsulates an (anchorage) reference point.AnIComputationStrategy.Parameter
that encapsulates a projection reference point.AnIComputationStrategy.Parameter
that encapsulates the preferred orientation to be used for orthogonal projections.TheIComputationStrategy
is responsible for computing anchor positions based on the anchorageNode
, the anchoredNode
, and respective (strategy-specific)parameters
.Base class for all computation parameters that can be passed to anIComputationStrategy
.Indicates whether the parameter value can be shared to compute positions of all attached anchors or not.AnIComputationStrategy
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).AnIComputationStrategy
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.AnStaticAnchor
provides a position for eachAnchorKey
, based on a reference position relative to the anchorageNode
, to which theStaticAnchor
is bound, or based on a (global) static reference position in case theStaticAnchor
is unbound.