Class OrthogonalLinkReshapingTool
The OrthogonalLinkReshapingTool class lets a user drag a tool handle along the link segment, which will move the whole segment.
Namespace: Northwoods.Go.Tools.Extensions
Assembly: OrthogonalLinkReshapingWinForms.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
MakeSegmentDragHandle(Link, Adornment, int)
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 |
Remarks
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 |