Package org.eclipse.gef.mvc.fx.providers
Class CenterSnappingLocationProvider
- java.lang.Object
-
- org.eclipse.gef.mvc.fx.providers.BoundsSnappingLocationProvider
-
- org.eclipse.gef.mvc.fx.providers.CenterSnappingLocationProvider
-
- All Implemented Interfaces:
ISnappingLocationProvider
public class CenterSnappingLocationProvider extends BoundsSnappingLocationProvider
TheCenterSnappingLocationProvideris a specialization ofBoundsSnappingLocationProviderthat returns the center of the bounds as the onlySnappingModel.SnappingLocations.
-
-
Constructor Summary
Constructors Constructor Description CenterSnappingLocationProvider()
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class org.eclipse.gef.mvc.fx.providers.BoundsSnappingLocationProvider
getSnappingLocations
-
-
-
-
Method Detail
-
getHorizontalSnappingLocations
public java.util.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- Overrides:
getHorizontalSnappingLocationsin classBoundsSnappingLocationProvider- Parameters:
part- TheIContentPartfor which to compute theSnappingModel.SnappingLocations.- Returns:
- A
Listof all horizontalSnappingModel.SnappingLocations for the givenIContentPart.
-
getVerticalSnappingLocations
public java.util.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- Overrides:
getVerticalSnappingLocationsin classBoundsSnappingLocationProvider- Parameters:
part- TheIContentPartfor which to compute theSnappingModel.SnappingLocations.- Returns:
- A
Listof all verticalSnappingModel.SnappingLocations for the givenIContentPart.
-
-