public class SnappingModel
extends java.lang.Object
SnappingModel
stores SnappingModel.SnappingLocation
s for which feedback
is generated by the SnappingBehavior.Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyListProperty<SnappingModel.SnappingLocation> |
snappingLocations
A read-only property containing the current
SnappingModel.SnappingLocation s. |
javafx.beans.property.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 java.lang.String |
SNAP_TO_STRATEGIES_PROPERTY
Name of the property storing supported strategies.
|
static java.lang.String |
SNAPPING_LOCATIONS_PROPERTY
Name of the
snappingLocationsProperty() . |
Constructor and Description |
---|
SnappingModel() |
Modifier and Type | Method and Description |
---|---|
java.util.List<SnappingModel.SnappingLocation> |
getSnappingLocations()
Returns a
List containing the SnappingModel.SnappingLocation s currently
stored in this SnappingModel . |
java.util.List<SnappingModel.SnappingLocation> |
getSnappingLocationsFor(IContentPart<? extends javafx.scene.Node> part)
Returns a
List containing the SnappingModel.SnappingLocation s that were
derived from the given IContentPart . |
void |
setSnappingLocations(java.util.List<? extends SnappingModel.SnappingLocation> snappingLocations)
Replaces the
SnappingModel.SnappingLocation s that are stored in this
SnappingModel by the given List of
SnappingModel.SnappingLocation s. |
javafx.beans.property.ReadOnlyListProperty<SnappingModel.SnappingLocation> |
snappingLocationsProperty()
A read-only property containing the current
SnappingModel.SnappingLocation s. |
javafx.beans.property.ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy> |
snapToStrategiesProperty()
A read-only property containing the current
ISnapToStrategies . |
public javafx.beans.property.ReadOnlyListProperty<SnappingModel.SnappingLocation> snappingLocationsProperty
SnappingModel.SnappingLocation
s.getSnappingLocations()
,
setSnappingLocations(List)
public javafx.beans.property.ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy> snapToStrategiesProperty
ISnapToStrategies
.public static final java.lang.String SNAPPING_LOCATIONS_PROPERTY
snappingLocationsProperty()
.public static final java.lang.String SNAP_TO_STRATEGIES_PROPERTY
public java.util.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 java.util.List<SnappingModel.SnappingLocation> getSnappingLocationsFor(IContentPart<? extends javafx.scene.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(java.util.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 javafx.beans.property.ReadOnlyListProperty<SnappingModel.SnappingLocation> snappingLocationsProperty()
SnappingModel.SnappingLocation
s.getSnappingLocations()
,
setSnappingLocations(List)
public javafx.beans.property.ReadOnlyListProperty<org.eclipse.gef.mvc.fx.handlers.ISnapToStrategy> snapToStrategiesProperty()
ISnapToStrategies
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.