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 SnapPolicy |
SnapPolicy.fromOrdinal(int ordinal) |
static SnapPolicy |
SnapPolicy.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnapPolicy[] |
SnapPolicy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NodeSnapResultProvider.addGridSnapResultCore(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD location,
INode node,
GridSnapTypes gridSnapType,
SnapPolicy xSnapPolicy,
SnapPolicy ySnapPolicy)
Calculates a
SnapResult and adds it to the
argument. |
boolean |
IGridConstraintProvider.snapToGrid(IInputModeContext context,
T item,
IMutablePoint location,
SnapPolicy xSnapPolicy,
SnapPolicy ySnapPolicy)
Performs the actual snapping to grid coordinates.
|
boolean |
GridConstraintProvider.snapToGrid(IInputModeContext context,
T item,
IMutablePoint location,
SnapPolicy xSnapPolicy,
SnapPolicy ySnapPolicy) |