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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHorizontalSnappingLocations
(IContentPart<? extends javafx.scene.Node> part) Returns the horizontalSnappingModel.SnappingLocation
s for the givenIContentPart
.getVerticalSnappingLocations
(IContentPart<? extends javafx.scene.Node> part) Returns the verticalSnappingModel.SnappingLocation
s for the givenIContentPart
.Methods inherited from class org.eclipse.gef.mvc.fx.providers.BoundsSnappingLocationProvider
getSnappingLocations
-
Constructor Details
-
TopLeftSnappingLocationProvider
public TopLeftSnappingLocationProvider()
-
-
Method Details
-
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
- Overrides:
getHorizontalSnappingLocations
in classBoundsSnappingLocationProvider
- Parameters:
part
- TheIContentPart
for which to compute theSnappingModel.SnappingLocation
s.- Returns:
- A
List
of all horizontalSnappingModel.SnappingLocation
s for the givenIContentPart
.
-
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
- Overrides:
getVerticalSnappingLocations
in classBoundsSnappingLocationProvider
- Parameters:
part
- TheIContentPart
for which to compute theSnappingModel.SnappingLocation
s.- Returns:
- A
List
of all verticalSnappingModel.SnappingLocation
s for the givenIContentPart
.
-