New to Telerik UI for WinFormsStart a free 30-day trial

An abstract base tool for mouse tools.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public abstract class PrimaryMouseToolBase : ToolBase, ITool, IMouseListener, IKeyboardListener

Inheritance: objectToolBasePrimaryMouseToolBase

Derived Classes: ConnectionToolDrawingToolBasePrimaryMouseToolTextTool

Implements: IKeyboardListenerIMouseListenerITool

Inherited Members ToolBase.DeactivateTool()ToolBase.ActivateTool()ToolBase.OnActivated()ToolBase.OnDeactivated()ToolBase.RestoreCursor()ToolBase.ToolServiceToolBase.GraphToolBase.IsEnabledToolBase.IsActiveToolBase.NameToolBase.InitialPointToolBase.Cursor...

Constructors

Initializes a new instance of the PrimaryMouseToolBase class.

C#
protected PrimaryMouseToolBase(string name)
Parameters:namestring

The name.

Properties

Gets or sets the active connector.

C#
protected IConnector ActiveConnector { get; set; }

Gets the hit item.

C#
protected IDiagramItem HitItem { get; set; }
C#
protected IHitTestService HitTestService { get; }
C#
protected ISelectionService<IDiagramItem> SelectionService { get; }
C#
protected IGraphServiceLocator ServiceLocator { get; set; }

Methods

Initializes this tool.

C#
public override void Initialize(IGraphServiceLocator serviceLocator)
Parameters:serviceLocatorIGraphServiceLocator

The locator or controller.

Overrides: ToolBase.Initialize(IGraphServiceLocator)

Handles the key down event.

C#
public virtual bool KeyDown(KeyArgs key)
Parameters:keyKeyArgsReturns:

bool

Implements: IKeyboardListener.KeyDown(KeyArgs)

Handles the key up event.

C#
public virtual bool KeyUp(KeyArgs key)
Parameters:keyKeyArgsReturns:

bool

Implements: IKeyboardListener.KeyUp(KeyArgs)

Handles the mouse double click event.

C#
public virtual bool MouseDoubleClick(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Implements: IMouseListener.MouseDoubleClick(PointerArgs)

Handles the mouse-down event.

C#
public virtual bool MouseDown(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Implements: IMouseListener.MouseDown(PointerArgs)

Handles the mouse-move event.

C#
public virtual bool MouseMove(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Implements: IMouseListener.MouseMove(PointerArgs)

Handles the mouse-up event.

C#
public virtual bool MouseUp(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Implements: IMouseListener.MouseUp(PointerArgs)