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 TheIComputationStrategyis responsible for computing anchor positions based on the anchorageNode, the anchoredNode, and respective (strategy-specific)parameters. -
Class Summary Class Description AbstractAnchor AbstractAnchoris the abstract base implementation forIAnchors.AnchorKey AnchorKey combines an anchoredNodewith aStringqualifier to identify an anchor target.ChopBoxStrategy A specific projection strategy that is based on a center-projection of the given reference point.DynamicAnchor TheDynamicAnchorcomputes anchor positions through aIComputationStrategy.DynamicAnchor.AnchorageReferenceGeometry AnIComputationStrategy.Parameterthat encapsulates an (anchorage) reference geometry.DynamicAnchor.AnchorageReferencePosition AnIComputationStrategy.Parameterthat encapsulates an (anchorage) reference point.DynamicAnchor.AnchoredReferencePoint AnIComputationStrategy.Parameterthat encapsulates a projection reference point.DynamicAnchor.PreferredOrientation AnIComputationStrategy.Parameterthat 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 AnIComputationStrategythat 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 AnIComputationStrategythat 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 AnStaticAnchorprovides a position for eachAnchorKey, based on a reference position relative to the anchorageNode, to which theStaticAnchoris bound, or based on a (global) static reference position in case theStaticAnchoris 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.