Package org.eclipse.gef.mvc.fx.models
Class SnappingModel
java.lang.Object
org.eclipse.gef.mvc.fx.models.SnappingModel
The 
SnappingModel stores SnappingModel.SnappingLocations for which feedback
 is generated by the SnappingBehavior.- 
Property SummaryPropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyListProperty<SnappingModel.SnappingLocation>A read-only property containing the currentSnappingModel.SnappingLocations.javafx.beans.property.ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy>A read-only property containing the currentISnapToStrategies.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classASnappingModel.SnappingLocationcombines anIContentPart, a position coordinate in the scene coordinate system, and anOrientation.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringName of the property storing supported strategies.static final StringName of thesnappingLocationsProperty().
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns aListcontaining theSnappingModel.SnappingLocations currently stored in thisSnappingModel.getSnappingLocationsFor(IContentPart<? extends javafx.scene.Node> part) Returns aListcontaining theSnappingModel.SnappingLocations that were derived from the givenIContentPart.voidsetSnappingLocations(List<? extends SnappingModel.SnappingLocation> snappingLocations) Replaces theSnappingModel.SnappingLocations that are stored in thisSnappingModelby the givenListofSnappingModel.SnappingLocations.javafx.beans.property.ReadOnlyListProperty<SnappingModel.SnappingLocation>A read-only property containing the currentSnappingModel.SnappingLocations.javafx.beans.property.ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy>A read-only property containing the currentISnapToStrategies.
- 
Property Details- 
snappingLocationspublic javafx.beans.property.ReadOnlyListProperty<SnappingModel.SnappingLocation> snappingLocationsPropertyA read-only property containing the currentSnappingModel.SnappingLocations.
- 
snapToStrategiespublic javafx.beans.property.ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy> snapToStrategiesPropertyA read-only property containing the currentISnapToStrategies.
 
- 
- 
Field Details- 
SNAPPING_LOCATIONS_PROPERTYName of thesnappingLocationsProperty().- See Also:
 
- 
SNAP_TO_STRATEGIES_PROPERTYName of the property storing supported strategies.- See Also:
 
 
- 
- 
Constructor Details- 
SnappingModelpublic SnappingModel()
 
- 
- 
Method Details- 
getSnappingLocationsReturns aListcontaining theSnappingModel.SnappingLocations currently stored in thisSnappingModel.- Returns:
- A Listcontaining theSnappingModel.SnappingLocations currently stored in thisSnappingModel.
 
- 
getSnappingLocationsForpublic List<SnappingModel.SnappingLocation> getSnappingLocationsFor(IContentPart<? extends javafx.scene.Node> part) Returns aListcontaining theSnappingModel.SnappingLocations that were derived from the givenIContentPart.- Parameters:
- part- The- IContentPartfor which to return the derived- SnappingModel.SnappingLocations.
- Returns:
- A Listcontaining theSnappingModel.SnappingLocations that were derived from the givenIContentPart.
 
- 
setSnappingLocationsReplaces theSnappingModel.SnappingLocations that are stored in thisSnappingModelby the givenListofSnappingModel.SnappingLocations.- Parameters:
- snappingLocations- A- Listcontaining the new- SnappingModel.SnappingLocations to store in this- SnappingModel.
 
- 
snappingLocationsPropertypublic javafx.beans.property.ReadOnlyListProperty<SnappingModel.SnappingLocation> snappingLocationsProperty()A read-only property containing the currentSnappingModel.SnappingLocations.
- 
snapToStrategiesPropertypublic javafx.beans.property.ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy> snapToStrategiesProperty()A read-only property containing the currentISnapToStrategies.
 
-