Class OrthogonalLinkReshapingTool

GoDiagram®
v10.0.11
by Northwoods Software®

The OrthogonalLinkReshapingTool class lets a user drag a tool handle along the link segment, which will move the whole segment.

Inheritance
OrthogonalLinkReshapingTool
Namespace: Northwoods.Go.Tools.Extensions
Assembly: OrthogonalLinkReshapingAvalonia.dll
Syntax
public class OrthogonalLinkReshapingTool : LinkReshapingTool

Constructors

OrthogonalLinkReshapingTool()

Constructs an OrthogonalLinkReshapingTool and sets the name for the tool.

Declaration
public OrthogonalLinkReshapingTool()

Methods

DoDeactivate()

This stops the current reshaping operation and updates any link handles.

Declaration
public override void DoDeactivate()
Overrides

Create the segment dragging handles.

Declaration
public void MakeSegmentDragHandle(Link link, Adornment adornment, int index)
Parameters
Type Name Description
Link link
Adornment adornment
int index

There are two parts: one invisible handle that spans the segment, and a visible handle at the middle of the segment. These are inserted at the front of the adornment such that the normal handles have priority.

Reshape(Point)

Change the route of the AdornedLink by moving the segment corresponding to the current Handle to be at the given Point.

Declaration
public override void Reshape(Point newpt)
Parameters
Type Name Description
Point newpt
Overrides