public class TopLeftSnappingLocationProvider extends BoundsSnappingLocationProvider
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 and Description |
---|
TopLeftSnappingLocationProvider() |
Modifier and Type | Method and Description |
---|---|
java.util.List<SnappingModel.SnappingLocation> |
getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Returns the horizontal
SnappingModel.SnappingLocation s for the given
IContentPart . |
java.util.List<SnappingModel.SnappingLocation> |
getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
Returns the vertical
SnappingModel.SnappingLocation s for the given
IContentPart . |
getSnappingLocations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
union
public java.util.List<SnappingModel.SnappingLocation> getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
ISnappingLocationProvider
SnappingModel.SnappingLocation
s for the given
IContentPart
.getHorizontalSnappingLocations
in interface ISnappingLocationProvider
getHorizontalSnappingLocations
in class BoundsSnappingLocationProvider
part
- The IContentPart
for which to compute the
SnappingModel.SnappingLocation
s.List
of all horizontal SnappingModel.SnappingLocation
s for
the given IContentPart
.public java.util.List<SnappingModel.SnappingLocation> getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
ISnappingLocationProvider
SnappingModel.SnappingLocation
s for the given
IContentPart
.getVerticalSnappingLocations
in interface ISnappingLocationProvider
getVerticalSnappingLocations
in class BoundsSnappingLocationProvider
part
- The IContentPart
for which to compute the
SnappingModel.SnappingLocation
s.List
of all vertical SnappingModel.SnappingLocation
s for the
given IContentPart
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.