Package org.eclipse.gef.mvc.fx.providers
Class ConnectionSnappingLocationProvider
- java.lang.Object
-
- org.eclipse.gef.mvc.fx.providers.ConnectionSnappingLocationProvider
-
- All Implemented Interfaces:
ISnappingLocationProvider
public class ConnectionSnappingLocationProvider extends java.lang.Object implements ISnappingLocationProvider
-
-
Constructor Summary
Constructors Constructor Description ConnectionSnappingLocationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConnectiongetConnection(IContentPart<? extends javafx.scene.Node> part)Returns theConnectionthat is used as the basis for determination ofSnappingModel.SnappingLocations for the givenIContentPart.java.util.List<SnappingModel.SnappingLocation>getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)Returns the horizontalSnappingModel.SnappingLocations for the givenIContentPart.protected java.util.List<SnappingModel.SnappingLocation>getSnappingLocations(IContentPart<? extends javafx.scene.Node> part, javafx.geometry.Orientation orientation)ReturnsSnappingModel.SnappingLocations with givenOrientationfor thegetConnection(IContentPart)of the givenIContentPart.java.util.List<SnappingModel.SnappingLocation>getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)Returns the verticalSnappingModel.SnappingLocations for the givenIContentPart.
-
-
-
Method Detail
-
getConnection
protected Connection getConnection(IContentPart<? extends javafx.scene.Node> part)
Returns theConnectionthat is used as the basis for determination ofSnappingModel.SnappingLocations for the givenIContentPart.- Parameters:
part- TheIContentPartfor which to determine aConnectionvisual.- Returns:
- The
Connectionthat is used as the basis for determination ofSnappingModel.SnappingLocations for the givenIContentPart.
-
getHorizontalSnappingLocations
public java.util.List<SnappingModel.SnappingLocation> getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Description copied from interface:ISnappingLocationProviderReturns the horizontalSnappingModel.SnappingLocations for the givenIContentPart.- Specified by:
getHorizontalSnappingLocationsin interfaceISnappingLocationProvider- Parameters:
part- TheIContentPartfor which to compute theSnappingModel.SnappingLocations.- Returns:
- A
Listof all horizontalSnappingModel.SnappingLocations for the givenIContentPart.
-
getSnappingLocations
protected java.util.List<SnappingModel.SnappingLocation> getSnappingLocations(IContentPart<? extends javafx.scene.Node> part, javafx.geometry.Orientation orientation)
ReturnsSnappingModel.SnappingLocations with givenOrientationfor thegetConnection(IContentPart)of the givenIContentPart.- Parameters:
part- TheIContentPartfor which to determineSnappingModel.SnappingLocations.orientation- TheOrientationfor the locations.- Returns:
- The
SnappingModel.SnappingLocations for the givenIContentPartandOrientation.
-
getVerticalSnappingLocations
public java.util.List<SnappingModel.SnappingLocation> getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Description copied from interface:ISnappingLocationProviderReturns the verticalSnappingModel.SnappingLocations for the givenIContentPart.- Specified by:
getVerticalSnappingLocationsin interfaceISnappingLocationProvider- Parameters:
part- TheIContentPartfor which to compute theSnappingModel.SnappingLocations.- Returns:
- A
Listof all verticalSnappingModel.SnappingLocations for the givenIContentPart.
-
-