Class NonRealtimeDraggingTool

GoDiagram®
v10.0.12
by Northwoods Software®

The NonRealtimeDraggingTool class lets the user drag an image instead of actually moving any selected nodes, until the mouse-up event.

Inheritance
NonRealtimeDraggingTool
Namespace: Northwoods.Go.Tools.Extensions
Assembly: NonRealtimeDraggingAvalonia.dll
Syntax
public class NonRealtimeDraggingTool : DraggingTool

Properties

Duration

Gets or sets how long the movement animation should be to move the actual parts upon a mouse-up.

Declaration
public int Duration { get; set; }
Property Value
Type Description
int
Remarks

The default value is zero -- there is no animation of the movement.

Methods

ComputeEffectiveCollection(IEnumerable<Part>, DraggingOptions)

Call the base method, and then make an image of the returned collection, show it using a Picture, and hold the Picture in a temporary Part.

Declaration
public override IDictionary<Part, DraggingInfo> ComputeEffectiveCollection(IEnumerable<Part> coll, DraggingOptions options)
Parameters
Type Name Description
IEnumerable<Part> coll

an IEnumerable of Parts

DraggingOptions options
Returns
Type Description
IDictionary<Part, DraggingInfo>
Overrides

DoActivate()

When activated, replace the DraggedParts with the ghost dragged parts, which consists of just one Part, the image, added to the Diagram at the current mouse point.

Declaration
public override void DoActivate()
Overrides

DoDeactivate()

When deactivated, make sure any image is removed from the Diagram and all references are cleared out.

Declaration
public override void DoDeactivate()
Overrides

DoKeyDown()

If the user changes to "copying" mode by holding down the Control key, return to the regular behavior and remove the image.

Declaration
public override void DoKeyDown()
Overrides

DoKeyUp()

If the user changes back to "moving" mode, show the image again and go back to dragging the ghost dragged parts.

Declaration
public override void DoKeyUp()
Overrides

DoMouseUp()

Do the normal mouse-up behavior, but only after restoring DraggedParts.

Declaration
public override void DoMouseUp()
Overrides