public class SnappingModel extends Object
SnappingModel
stores SnappingModel.SnappingLocation
s for which feedback
is generated by the SnappingBehavior.Type | Property and Description |
---|---|
ReadOnlyListProperty<SnappingModel.SnappingLocation> |
snappingLocations
A read-only property containing the current
SnappingModel.SnappingLocation s. |
ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy> |
snapToStrategies
A read-only property containing the current
ISnapToStrategies . |
Modifier and Type | Class and Description |
---|---|
static class |
SnappingModel.SnappingLocation
A
SnappingModel.SnappingLocation combines an IContentPart , a position
coordinate in the scene coordinate system, and an Orientation . |
Modifier and Type | Field and Description |
---|---|
static String |
SNAP_TO_STRATEGIES_PROPERTY
Name of the property storing supported strategies.
|
static String |
SNAPPING_LOCATIONS_PROPERTY
Name of the
snappingLocationsProperty() . |
Constructor and Description |
---|
SnappingModel() |
public ReadOnlyListProperty<SnappingModel.SnappingLocation> snappingLocationsProperty
SnappingModel.SnappingLocation
s.getSnappingLocations()
,
setSnappingLocations(List)
public ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy> snapToStrategiesProperty
ISnapToStrategies
.public static final String SNAPPING_LOCATIONS_PROPERTY
snappingLocationsProperty()
.public static final String SNAP_TO_STRATEGIES_PROPERTY
public List<SnappingModel.SnappingLocation> getSnappingLocations()
List
containing the SnappingModel.SnappingLocation
s currently
stored in this SnappingModel
.List
containing the SnappingModel.SnappingLocation
s currently
stored in this SnappingModel
.public List<SnappingModel.SnappingLocation> getSnappingLocationsFor(IContentPart<? extends Node> part)
List
containing the SnappingModel.SnappingLocation
s that were
derived from the given IContentPart
.part
- The IContentPart
for which to return the derived
SnappingModel.SnappingLocation
s.List
containing the SnappingModel.SnappingLocation
s that were
derived from the given IContentPart
.public void setSnappingLocations(List<? extends SnappingModel.SnappingLocation> snappingLocations)
SnappingModel.SnappingLocation
s that are stored in this
SnappingModel
by the given List
of
SnappingModel.SnappingLocation
s.snappingLocations
- A List
containing the new SnappingModel.SnappingLocation
s to
store in this SnappingModel
.public ReadOnlyListProperty<SnappingModel.SnappingLocation> snappingLocationsProperty()
SnappingModel.SnappingLocation
s.getSnappingLocations()
,
setSnappingLocations(List)
public ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy> snapToStrategiesProperty()
ISnapToStrategies
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.