Package org.eclipse.gef.mvc.fx.providers
Interface ISnappingLocationProvider
-
- All Known Implementing Classes:
BoundsSnappingLocationProvider,CenterSnappingLocationProvider,ConnectionSnappingLocationProvider,TopLeftSnappingLocationProvider
public interface ISnappingLocationProviderTheISnappingLocationProvideris used to determineSnappingModel.SnappingLocations for anIContentPart.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<SnappingModel.SnappingLocation>getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)Returns the horizontalSnappingModel.SnappingLocations for the givenIContentPart.java.util.List<SnappingModel.SnappingLocation>getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)Returns the verticalSnappingModel.SnappingLocations for the givenIContentPart.static ISnappingLocationProviderunion(java.util.List<ISnappingLocationProvider> providers)Combines the givenISnappingLocationProviders by wrapping them in a newISnappingLocationProviderthat returns a combination of allSnappingModel.SnappingLocations that are returned by the individual providers.
-
-
-
Method Detail
-
union
static ISnappingLocationProvider union(java.util.List<ISnappingLocationProvider> providers)
Combines the givenISnappingLocationProviders by wrapping them in a newISnappingLocationProviderthat returns a combination of allSnappingModel.SnappingLocations that are returned by the individual providers.- Parameters:
providers- TheISnappingLocationProviders to combine.- Returns:
- A new
ISnappingLocationProviderthat represents the combination of the given providers.
-
getHorizontalSnappingLocations
java.util.List<SnappingModel.SnappingLocation> getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Returns the horizontalSnappingModel.SnappingLocations for the givenIContentPart.- Parameters:
part- TheIContentPartfor which to compute theSnappingModel.SnappingLocations.- Returns:
- A
Listof all horizontalSnappingModel.SnappingLocations for the givenIContentPart.
-
getVerticalSnappingLocations
java.util.List<SnappingModel.SnappingLocation> getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Returns the verticalSnappingModel.SnappingLocations for the givenIContentPart.- Parameters:
part- TheIContentPartfor which to compute theSnappingModel.SnappingLocations.- Returns:
- A
Listof all verticalSnappingModel.SnappingLocations for the givenIContentPart.
-
-