C

NodeReshapeSnapResultProvider

The default implementation of the INodeReshapeSnapResultProvider interface.

Members

Show:

Methods

Collects the snap results for the grid.
protected

Parameters

context: GraphSnapContext
The context in which the snapping is performed.
evt: CollectSnapResultsEventArgs
The CollectSnapResultsEventArgs instance containing the event data.
snapGrid: SnapGrid
The snap reference containing data about the grid.
node: INode
The node that is being reshaped.
reshapeContext: ReshapeRectangleContext
The reshape context that describes how the node's layout is reshaped.
suggestedLayout: Rect
The suggested layout of the node.
Collects the snap results that make the node's bounds snap to the snapLine.
This method ultimately delegates to collectReshapeSnapResult to create the results to add to the event argument.
protected

Parameters

context: GraphSnapContext
The context in which the snapping is performed.
evt: CollectSnapResultsEventArgs
The CollectSnapResultsEventArgs instance containing the event data.
snapLine: OrthogonalSnapLine
The snap line to snap to.
node: INode
The node that is being reshaped.
reshapeContext: ReshapeRectangleContext
The reshape context that contains information about the nature of the resize.
suggestedLayout: Rect
The layout of the node as it would be if the mouse location would not be snapped.
Collects the snap results that make the node the same size as other elements.
This method ultimately delegates to collectReshapeSnapResult to create the results to add to the event argument.
protected

Parameters

context: GraphSnapContext
The context in which the snapping is performed.
evt: CollectSnapResultsEventArgs
The CollectSnapResultsEventArgs instance containing the event data.
snapSize: SnapSize
The snap reference containing data about nodes with same sizes.
node: INode
The node that is being reshaped.
reshapeContext: ReshapeRectangleContext
The reshape context that contains information about the nature of the resize.
suggestedLayout: Rect
The layout of the node as it would be if the mouse location would not be snapped.
Called when a node is dragged to add SnapResults for SnapReferences to which this node can potentially snap during resizing.
This implementation delegates to the following methods:

Parameters

context: GraphSnapContext
The snap context which manages the snap references and the settings.
evt: CollectSnapResultsEventArgs
The event argument to obtain the context from and add the results to.
node: INode
The node that is being reshaped.
reshapeContext: ReshapeRectangleContext
Carries information about the reshape process.

Constants

A shared singleton instance of this type.