Package org.eclipse.gef.mvc.fx.providers
Class TopLeftSnappingLocationProvider
java.lang.Object
org.eclipse.gef.mvc.fx.providers.BoundsSnappingLocationProvider
org.eclipse.gef.mvc.fx.providers.TopLeftSnappingLocationProvider
- All Implemented Interfaces:
- ISnappingLocationProvider
The 
TopLeftSnappingLocationProvider returns the top left corner of
 the bounds as the only snapping location. It can be used, for example, to
 provide locations for SnapToGrid.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part) Returns the horizontalSnappingModel.SnappingLocations for the givenIContentPart.getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part) Returns the verticalSnappingModel.SnappingLocations for the givenIContentPart.Methods inherited from class org.eclipse.gef.mvc.fx.providers.BoundsSnappingLocationProvidergetSnappingLocations
- 
Constructor Details- 
TopLeftSnappingLocationProviderpublic TopLeftSnappingLocationProvider()
 
- 
- 
Method Details- 
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
- Overrides:
- getHorizontalSnappingLocationsin class- BoundsSnappingLocationProvider
- Parameters:
- part- The- IContentPartfor which to compute the- SnappingModel.SnappingLocations.
- Returns:
- A Listof all horizontalSnappingModel.SnappingLocations for the givenIContentPart.
 
- 
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
- Overrides:
- getVerticalSnappingLocationsin class- BoundsSnappingLocationProvider
- Parameters:
- part- The- IContentPartfor which to compute the- SnappingModel.SnappingLocations.
- Returns:
- A Listof all verticalSnappingModel.SnappingLocations for the givenIContentPart.
 
 
-