The default implementation of ILabelSnapResultProvider that provides the snap results to the GraphSnapContext during dragging of labels.
Implements
- I
Members
Show:
Methods
Collects snap results that snap the center or any border of the bounds of the label to the given snapLine.
Collects snap results that snap the center or any border of the bounds of the
label to the given snapLine.If the label will snap, a SnapResult for the
snapLine will be created and added to the event argument.protected
Parameters
- context: GraphSnapContext
- The snap context which manages the snap lines and the settings.
- evt: CollectSnapResultsEventArgs
- The arguments to add the results to.
- snapLine: OrthogonalSnapLine
- The snap line to test snapping for.
- suggestedLayout: IOrientedRectangle
- The layout of the label if it would move without snapping.
- label: ILabel
- The label that is currently being processed.
If the label will snap, a SnapResult for the
snapLine will be created and added to the event argument.protected
Parameters
- context: GraphSnapContext
- The snap context which manages the snap lines and the settings.
- evt: CollectSnapResultsEventArgs
- The arguments to add the results to.
- snapLine: SnapLine
- The snap line to test snapping for.
- suggestedLayout: IOrientedRectangle
- The layout of the label if it would move without snapping.
- label: ILabel
- The label that is currently being processed.
Called when the given label is dragged to add SnapResults for the SnapReferences provided by the context.
Called when the given
label is dragged to add SnapResults for the SnapReferences provided by the context.Parameters
- context: GraphSnapContext
- The snap context which manages the snap references and the settings.
- evt: CollectSnapResultsEventArgs
- The event argument to obtain the necessary information from and add results to.
- suggestedLayout: IOrientedRectangle
- The layout of the label that would be used without snapping.
- label: ILabel
- The label that is dragged.
Constants
Returns the static shared instance of this class.
Returns the static shared instance of this class.
Since this implementation does not carry any state, this instance can safely be used even in multi-threaded environments.
static