Package | Description |
---|---|
com.yworks.yfiles.view.input |
Contains definitions, default implementations, and support classes that deal with the user interaction in a
CanvasControl in general, as well as specialized utility classes and IInputMode implementations that can be used to work with and edit IGraph instances in a GraphControl . |
Modifier and Type | Method and Description |
---|---|
static SnapResult |
SnapResult.createLabelSnapResult(ILabelModelParameter layoutParameter,
double weight,
PointD delta,
Object tag,
SnapLine snapLine,
PointD snappedCoordinates,
Object movedObject)
|
static SnapResult |
SnapResult.createPointSnapResult(PointD location,
double weight,
Object tag,
IVisualCreator visualCreator,
SnapTypes snapType)
Factory method that creates a
SnapResult that snaps to a given location. |
static SnapResult |
SnapResult.createResizeSnapResult(double weight,
double delta,
Object tag,
Iterable<IRectangle> rectangles,
double size,
boolean horizontal)
Factory method that creates a
SnapResult which snaps to a given size through a resize operation. |
static SnapResult |
SnapResult.createSnapLineSnapResult(double weight,
PointD delta,
Object tag,
SnapLine snapLine,
PointD snappedLocation,
Object movedObject)
Factory method that creates a
SnapResult which represents a SnapLine to which the current moved item
will potentially snap. |
static SnapResult |
SnapResult.getNullResult()
Gets a
SnapResult representing that there is no snapping of the x or y coordinate. |
Modifier and Type | Method and Description |
---|---|
CollectionModelManager<SnapResult> |
SnapContext.createSnapResultsModelManager(CanvasControl canvas)
Helper method that creates the a
CollectionModelManager that can be used to present the current
SnapResult s in the provided CanvasControl . |
IObservableCollection<SnapResult> |
SnapContext.getSnapResults()
The collection of
SnapResult s. |
Modifier and Type | Method and Description |
---|---|
void |
CollectSnapResultsEventArgs.addSnapResult(SnapResult snapResult)
Adds a
SnapResult to the collection of snap results. |
int |
SnapResult.compareTo(SnapResult other)
Implements the
Comparable interface using Weight . |
Modifier and Type | Method and Description |
---|---|
protected SnapState |
SnapContext.processSnapResults(ArrayList<SnapResult> snapResults,
PointD originalLocation,
PointD newLocation)
Chooses the current
SnapResult s from a temporary list. |
Constructor and Description |
---|
CollectSnapResultsEventArgs(IInputModeContext context,
PointD originalLocation,
PointD newLocation,
double snapDistance,
Collection<SnapResult> snapResults)
Creates a new instance of the event arguments using the provided values for initialization.
|