Package org.eclipse.gef.fx.anchors
Class OrthogonalProjectionStrategy
java.lang.Object
org.eclipse.gef.fx.anchors.ProjectionStrategy
org.eclipse.gef.fx.anchors.OrthogonalProjectionStrategy
- All Implemented Interfaces:
- IComputationStrategy
An 
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).- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.gef.fx.anchors.IComputationStrategyIComputationStrategy.Parameter<T>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected PointcomputeProjectionInScene(List<ICurve> anchorageOutlinesInScene, Point anchoredReferencePointInScene, Set<IComputationStrategy.Parameter<?>> parameters) Computes the anchorage reference position in scene coordinates, based on the given anchorage outlines and the given anchored reference point.Set<Class<? extends IComputationStrategy.Parameter<?>>>Returns the types of parameters required by this strategy.Methods inherited from class org.eclipse.gef.fx.anchors.ProjectionStrategycomputePositionInScene, getOutlineSegments
- 
Constructor Details- 
OrthogonalProjectionStrategypublic OrthogonalProjectionStrategy()
 
- 
- 
Method Details- 
computeProjectionInSceneprotected Point computeProjectionInScene(List<ICurve> anchorageOutlinesInScene, Point anchoredReferencePointInScene, Set<IComputationStrategy.Parameter<?>> parameters) Description copied from class:ProjectionStrategyComputes the anchorage reference position in scene coordinates, based on the given anchorage outlines and the given anchored reference point.- Overrides:
- computeProjectionInScenein class- ProjectionStrategy
- Parameters:
- anchorageOutlinesInScene- A list of- ICurves that describe the outline of the anchorage.
- anchoredReferencePointInScene- The reference- Pointof the anchored for which the anchorage reference- Pointis to be determined.
- parameters- The parameters available for the computation.
- Returns:
- The anchorage reference position.
 
- 
getRequiredParametersDescription copied from interface:IComputationStrategyReturns the types of parameters required by this strategy.- Specified by:
- getRequiredParametersin interface- IComputationStrategy
- Overrides:
- getRequiredParametersin class- ProjectionStrategy
- Returns:
- The parameters required by this strategy.
 
 
-