LinkReshapingTool

StockSharp.Xaml.Diagram.GXDiagram.Tool

The LinkReshapingTool is used to interactively change the route of a Link.

Hereda de: ReshapingBaseTool

Propiedades

HandleIndex : int

Gets or sets the index of the handle being dragged.

OriginalPoint : Point

Gets or sets the point of the link's route that is being moved.

OriginalPoints : IList<Point>

Gets or sets a copy of the AdornedLink's route's initial array of Points.

Métodos

CanStart() : bool

The LinkReshapingTool may run when there is a mouse-down event on a reshape handle.

ComputeReshape(Point) : Point

Compute the new Point for reshaping a point in the Route.

newPoint
DoActivate()

Start reshaping.

DoCancel()

Restore the modified point to be the OriginalPoint and stop this tool.

DoDeactivate()

This stops the current edit (StopTransaction).

DoMouseMove()

Call Point) with a new point determined by the mouse.

DoMouseUp()

Call Point) with a point based on the most recent mouse point, and raise a "link reshaped" event before stopping the tool.

DoReshape(Point)

Modify the Route of the AdornedLink to a new point, considering also which reshape handle is being dragged and whether the route is Orthogonal.

newPoint
DoStart()

Capture the mouse when starting this tool.

DoStop()

Release the mouse capture when stopping this tool.

UpdateAdornments(Part)

Show an Adornment with reshape handles at each of the interesting points of the link's Route, if the link is selected and visible and if CanReshape is true.

part