Package | Description |
---|---|
org.eclipse.gef4.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. |
Modifier and Type | Class and Description |
---|---|
static class |
DynamicAnchor.AbstractComputationStrategy
Abstract base class for
computation
strategies that are based on the outline of the anchorage reference
geometry. |
static class |
DynamicAnchor.OrthogonalProjectionStrategy
An
DynamicAnchor.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). |
static class |
DynamicAnchor.ProjectionStrategy
An
DynamicAnchor.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. |
Modifier and Type | Method and Description |
---|---|
DynamicAnchor.IComputationStrategy |
DynamicAnchor.getComputationStrategy(AnchorKey key)
Returns the
DynamicAnchor.IComputationStrategy that is used by this
DynamicAnchor to compute the position for the given
AnchorKey . |
DynamicAnchor.IComputationStrategy |
DynamicAnchor.getDefaultComputationStrategy()
Returns the default
DynamicAnchor.IComputationStrategy used by this
DynamicAnchor when no DynamicAnchor.IComputationStrategy is explicitly
set for an AnchorKey . |
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.ReadOnlyMapProperty<AnchorKey,DynamicAnchor.IComputationStrategy> |
DynamicAnchor.computationStrategyProperty()
Returns a
ReadOnlyMapProperty that stores the individual
DynamicAnchor.IComputationStrategy for each AnchorKey . |
javafx.beans.property.ObjectProperty<DynamicAnchor.IComputationStrategy> |
DynamicAnchor.defaultComputationStrategyProperty()
Returns a writable object property for the
DynamicAnchor.IComputationStrategy
used by this DynamicAnchor . |
Modifier and Type | Method and Description |
---|---|
Point |
DynamicAnchor.computePosition(javafx.scene.Node anchored,
Point anchoredReferencePointInLocal,
DynamicAnchor.IComputationStrategy computationStrategy)
Computes the point of intersection between the outline of the anchorage
reference shape and the line through the reference points of anchorage
and anchored.
|
void |
DynamicAnchor.setComputationStrategy(AnchorKey key,
DynamicAnchor.IComputationStrategy computationStrategy)
Sets the given
DynamicAnchor.IComputationStrategy to be used by this
DynamicAnchor to compute the position for the given
AnchorKey . |
void |
DynamicAnchor.setDefaultComputationStrategy(DynamicAnchor.IComputationStrategy computationStrategy)
Sets the given
DynamicAnchor.IComputationStrategy for this
DynamicAnchor as the default strategy. |
Constructor and Description |
---|
DynamicAnchor(javafx.scene.Node anchorage,
DynamicAnchor.IComputationStrategy computationStrategy)
Constructs a new
DynamicAnchor for the given anchorage visual
using the given DynamicAnchor.IComputationStrategy . |
Copyright (c) 2014 itemis AG and others. All rights reserved.