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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Connection
getConnection
(IContentPart<? extends javafx.scene.Node> part) Returns theConnection
that is used as the basis for determination ofSnappingModel.SnappingLocation
s for the givenIContentPart
.getHorizontalSnappingLocations
(IContentPart<? extends javafx.scene.Node> part) Returns the horizontalSnappingModel.SnappingLocation
s for the givenIContentPart
.protected 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
.getVerticalSnappingLocations
(IContentPart<? extends javafx.scene.Node> part) Returns the verticalSnappingModel.SnappingLocation
s for the givenIContentPart
.
-
Constructor Details
-
ConnectionSnappingLocationProvider
public ConnectionSnappingLocationProvider()
-
-
Method Details
-
getConnection
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 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 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 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
.
-