IDiagramTool

StockSharp.Xaml.Diagram.GXDiagram.Tool

This interface specifies the methods the diagram uses to control each tool and the methods used to handle the standard input events processed through the diagram.

Properties

Active : bool

Gets or sets whether this tool is started and is actively doing something.

Diagram : Diagram

Gets the Diagram for which this tool is handling input events.

Methods

CanStart() : bool

This predicate is used by the diagram to decide if this tool can be started.

Returns: true if the ToolManager can make this tool the current one and call the DoStart method

DoActivate()

This method is called by the diagram after setting CurrentTool, to make the new tool active.

DoCancel()

The diagram will call this method when the we wish to cancel the current tool's operation.

DoDeactivate()

This method is called by the diagram on the old tool when CurrentTool is set to a new tool.

DoKeyDown(KeyEventArgs)

The diagram will call this method upon a key down event.

DoKeyUp(KeyEventArgs)

The diagram will call this method upon a key up event.

DoMouseDown()

The diagram will call this method upon a mouse down event.

DoMouseMove()

The diagram will call this method upon a mouse move event.

DoMouseUp()

The diagram will call this method upon a mouse up event.

DoMouseWheel()

The diagram will call this method as the mouse wheel is rotated.

DoStart()

This method is called by the diagram when this tool becomes the current tool.

DoStop()

This method is called by the diagram when this tool stops being the current tool.

UpdateAdornments(Part)

The diagram asks each tool to update any adornments the tool might use for a given part.

part