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.-
Interface Summary Interface Description IAnchor IComputationStrategy TheIComputationStrategy
is responsible for computing anchor positions based on the anchorageNode
, the anchoredNode
, and respective (strategy-specific)parameters
. -
Class Summary Class Description AbstractAnchor AbstractAnchor
is the abstract base implementation forIAnchor
s.AnchorKey AnchorKey combines an anchoredNode
with aString
qualifier to identify an anchor target.ChopBoxStrategy A specific projection strategy that is based on a center-projection of the given reference point.DynamicAnchor TheDynamicAnchor
computes anchor positions through aIComputationStrategy
.DynamicAnchor.AnchorageReferenceGeometry AnIComputationStrategy.Parameter
that encapsulates an (anchorage) reference geometry.DynamicAnchor.AnchorageReferencePosition AnIComputationStrategy.Parameter
that encapsulates an (anchorage) reference point.DynamicAnchor.AnchoredReferencePoint AnIComputationStrategy.Parameter
that encapsulates a projection reference point.DynamicAnchor.PreferredOrientation AnIComputationStrategy.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 anIComputationStrategy
.OrthogonalProjectionStrategy 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).ProjectionStrategy 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.StaticAnchor 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. -
Enum Summary Enum Description IComputationStrategy.Parameter.Kind Indicates whether the parameter value can be shared to compute positions of all attached anchors or not.