public interface ISnappingLocationProvider
ISnappingLocationProvider
is used to determine
SnappingModel.SnappingLocation
s for an IContentPart
.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 . |
static ISnappingLocationProvider |
union(java.util.List<ISnappingLocationProvider> providers)
Combines the given
ISnappingLocationProvider s by wrapping them in
a new ISnappingLocationProvider that returns a combination of all
SnappingModel.SnappingLocation s that are returned by the individual providers. |
static ISnappingLocationProvider union(java.util.List<ISnappingLocationProvider> providers)
ISnappingLocationProvider
s by wrapping them in
a new ISnappingLocationProvider
that returns a combination of all
SnappingModel.SnappingLocation
s that are returned by the individual providers.providers
- The ISnappingLocationProvider
s to combine.ISnappingLocationProvider
that represents the
combination of the given providers.java.util.List<SnappingModel.SnappingLocation> getHorizontalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
SnappingModel.SnappingLocation
s for the given
IContentPart
.part
- The IContentPart
for which to compute the
SnappingModel.SnappingLocation
s.List
of all horizontal SnappingModel.SnappingLocation
s for
the given IContentPart
.java.util.List<SnappingModel.SnappingLocation> getVerticalSnappingLocations(IContentPart<? extends javafx.scene.Node> part)
SnappingModel.SnappingLocation
s for the given
IContentPart
.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.