Package org.eclipse.gef.mvc.fx.providers
Class ConnectionSnappingLocationProvider
java.lang.Object
org.eclipse.gef.mvc.fx.providers.ConnectionSnappingLocationProvider
- All Implemented Interfaces:
ISnappingLocationProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConnectiongetConnection(IContentPart<? extends javafx.scene.Node> part) Returns theConnectionthat is used as the basis for determination ofSnappingModel.SnappingLocations for the givenIContentPart.getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part) Returns the horizontalSnappingModel.SnappingLocations for the givenIContentPart.protected List<SnappingModel.SnappingLocation>getSnappingLocations(IContentPart<? extends javafx.scene.Node> part, javafx.geometry.Orientation orientation) ReturnsSnappingModel.SnappingLocations with givenOrientationfor thegetConnection(IContentPart)of the givenIContentPart.getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part) Returns the verticalSnappingModel.SnappingLocations for the givenIContentPart.
-
Constructor Details
-
ConnectionSnappingLocationProvider
public ConnectionSnappingLocationProvider()
-
-
Method Details
-
getConnection
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 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 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 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.
-