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 Connection
getConnection(IContentPart<? extends javafx.scene.Node> part)
Returns theConnection
that is used as the basis for determination ofSnappingModel.SnappingLocation
s for the givenIContentPart
.java.util.List<SnappingModel.SnappingLocation>
getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Returns the horizontalSnappingModel.SnappingLocation
s for the givenIContentPart
.protected java.util.List<SnappingModel.SnappingLocation>
getSnappingLocations(IContentPart<? extends javafx.scene.Node> part, javafx.geometry.Orientation orientation)
ReturnsSnappingModel.SnappingLocation
s with givenOrientation
for thegetConnection(IContentPart)
of the givenIContentPart
.java.util.List<SnappingModel.SnappingLocation>
getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Returns the verticalSnappingModel.SnappingLocation
s for the givenIContentPart
.
-
-
-
Method Detail
-
getConnection
protected Connection getConnection(IContentPart<? extends javafx.scene.Node> part)
Returns theConnection
that is used as the basis for determination ofSnappingModel.SnappingLocation
s for the givenIContentPart
.- Parameters:
part
- TheIContentPart
for which to determine aConnection
visual.- Returns:
- The
Connection
that is used as the basis for determination ofSnappingModel.SnappingLocation
s for the givenIContentPart
.
-
getHorizontalSnappingLocations
public java.util.List<SnappingModel.SnappingLocation> getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Description copied from interface:ISnappingLocationProvider
Returns the horizontalSnappingModel.SnappingLocation
s for the givenIContentPart
.- Specified by:
getHorizontalSnappingLocations
in interfaceISnappingLocationProvider
- Parameters:
part
- TheIContentPart
for which to compute theSnappingModel.SnappingLocation
s.- Returns:
- A
List
of all horizontalSnappingModel.SnappingLocation
s for the givenIContentPart
.
-
getSnappingLocations
protected java.util.List<SnappingModel.SnappingLocation> getSnappingLocations(IContentPart<? extends javafx.scene.Node> part, javafx.geometry.Orientation orientation)
ReturnsSnappingModel.SnappingLocation
s with givenOrientation
for thegetConnection(IContentPart)
of the givenIContentPart
.- Parameters:
part
- TheIContentPart
for which to determineSnappingModel.SnappingLocation
s.orientation
- TheOrientation
for the locations.- Returns:
- The
SnappingModel.SnappingLocation
s for the givenIContentPart
andOrientation
.
-
getVerticalSnappingLocations
public java.util.List<SnappingModel.SnappingLocation> getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Description copied from interface:ISnappingLocationProvider
Returns the verticalSnappingModel.SnappingLocation
s for the givenIContentPart
.- Specified by:
getVerticalSnappingLocations
in interfaceISnappingLocationProvider
- Parameters:
part
- TheIContentPart
for which to compute theSnappingModel.SnappingLocation
s.- Returns:
- A
List
of all verticalSnappingModel.SnappingLocation
s for the givenIContentPart
.
-
-