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
AbstractAnchoris the abstract base implementation forIAnchors.AnchorKey combines an anchoredNodewith aStringqualifier to identify an anchor target.A specific projection strategy that is based on a center-projection of the given reference point.TheDynamicAnchorcomputes anchor positions through aIComputationStrategy.AnIComputationStrategy.Parameterthat encapsulates an (anchorage) reference geometry.AnIComputationStrategy.Parameterthat encapsulates an (anchorage) reference point.AnIComputationStrategy.Parameterthat encapsulates a projection reference point.AnIComputationStrategy.Parameterthat encapsulates the preferred orientation to be used for orthogonal projections.TheIComputationStrategyis 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.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).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.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.