public class SnappingModel extends Object
SnappingModel stores SnappingModel.SnappingLocations for which feedback
is generated by the SnappingBehavior.| Type | Property and Description |
|---|---|
ReadOnlyListProperty<SnappingModel.SnappingLocation> |
snappingLocations
A read-only property containing the current
SnappingModel.SnappingLocations. |
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.SnappingLocations.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.SnappingLocations currently
stored in this SnappingModel.List containing the SnappingModel.SnappingLocations currently
stored in this SnappingModel.public List<SnappingModel.SnappingLocation> getSnappingLocationsFor(IContentPart<? extends Node> part)
List containing the SnappingModel.SnappingLocations that were
derived from the given IContentPart.part - The IContentPart for which to return the derived
SnappingModel.SnappingLocations.List containing the SnappingModel.SnappingLocations that were
derived from the given IContentPart.public void setSnappingLocations(List<? extends SnappingModel.SnappingLocation> snappingLocations)
SnappingModel.SnappingLocations that are stored in this
SnappingModel by the given List of
SnappingModel.SnappingLocations.snappingLocations - A List containing the new SnappingModel.SnappingLocations to
store in this SnappingModel.public ReadOnlyListProperty<SnappingModel.SnappingLocation> snappingLocationsProperty()
SnappingModel.SnappingLocations.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.