Package org.eclipse.gef.mvc.fx.providers
Class ConnectionSnappingLocationProvider
java.lang.Object
org.eclipse.gef.mvc.fx.providers.ConnectionSnappingLocationProvider
- All Implemented Interfaces:
- ISnappingLocationProvider
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
ConnectionSnappingLocationProviderpublic ConnectionSnappingLocationProvider()
 
- 
- 
Method Details- 
getConnectionReturns theConnectionthat is used as the basis for determination ofSnappingModel.SnappingLocations for the givenIContentPart.- Parameters:
- part- The- IContentPartfor which to determine a- Connectionvisual.
- Returns:
- The Connectionthat is used as the basis for determination ofSnappingModel.SnappingLocations for the givenIContentPart.
 
- 
getHorizontalSnappingLocationspublic List<SnappingModel.SnappingLocation> getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part) Description copied from interface:ISnappingLocationProviderReturns the horizontalSnappingModel.SnappingLocations for the givenIContentPart.- Specified by:
- getHorizontalSnappingLocationsin interface- ISnappingLocationProvider
- Parameters:
- part- The- IContentPartfor which to compute the- SnappingModel.SnappingLocations.
- Returns:
- A Listof all horizontalSnappingModel.SnappingLocations for the givenIContentPart.
 
- 
getSnappingLocationsprotected 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- The- IContentPartfor which to determine- SnappingModel.SnappingLocations.
- orientation- The- Orientationfor the locations.
- Returns:
- The SnappingModel.SnappingLocations for the givenIContentPartandOrientation.
 
- 
getVerticalSnappingLocationspublic List<SnappingModel.SnappingLocation> getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part) Description copied from interface:ISnappingLocationProviderReturns the verticalSnappingModel.SnappingLocations for the givenIContentPart.- Specified by:
- getVerticalSnappingLocationsin interface- ISnappingLocationProvider
- Parameters:
- part- The- IContentPartfor which to compute the- SnappingModel.SnappingLocations.
- Returns:
- A Listof all verticalSnappingModel.SnappingLocations for the givenIContentPart.
 
 
-