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 |
---|---|
SnapState |
SnapContext.dragFinished(PointD newLocation,
boolean snappingDisabled)
Called when a drag has been successfully finished.
|
SnapState |
LabelSnapContext.dragFinished(PointD newLocation,
boolean snappingDisabled) |
SnapState |
SnapContext.handleMove(PointD newLocation,
boolean snappingDisabled)
Handles a move.
|
SnapState |
LabelSnapContext.handleMove(PointD newLocation,
boolean snappingDisabled) |
protected SnapState |
SnapContext.processSnapResults(ArrayList<SnapResult> snapResults,
PointD originalLocation,
PointD newLocation)
Chooses the current
SnapResult s from a temporary list. |
Modifier and Type | Method and Description |
---|---|
void |
SnapContext.dragged(PointD mouseLocation,
SnapState finalSnapState)
This method needs to be called by the client
IInputMode that initialized
this instance after it has performed the actual move operation with the adjusted coordinates after a call to
SnapContext.handleMove(PointD, boolean) . |
boolean |
SnapResult.isSnapped(PointD unsnappedLocation,
SnapState finalSnapState)
Checks whether this instance is still snapped given the final mouse location.
|
void |
SnapResult.snap(PointD unsnappedLocation,
SnapState currentSnapState)
Core method that performs the actual snapping.
|