public class CenterSnappingLocationProvider extends BoundsSnappingLocationProvider
CenterSnappingLocationProvider
is a specialization of
BoundsSnappingLocationProvider
that returns the center of the bounds
as the only SnappingModel.SnappingLocation
s.Constructor and Description |
---|
CenterSnappingLocationProvider() |
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.