ClassPrimaryMouseToolBase
An abstract base tool for mouse tools.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public abstract class PrimaryMouseToolBase : ToolBase, ITool, IMouseListener, IKeyboardListener
Inheritance: objectToolBasePrimaryMouseToolBase
Derived Classes:
Implements:
Inherited Members
Constructors
PrimaryMouseToolBase(string)
Initializes a new instance of the PrimaryMouseToolBase class.
Declaration
protected PrimaryMouseToolBase(string name)
Parameters
name
The name.
Properties
ActiveConnector
Gets or sets the active connector.
Declaration
protected IConnector ActiveConnector { get; set; }
Property Value
HitItem
Gets the hit item.
Declaration
protected IDiagramItem HitItem { get; set; }
Property Value
HitTestService
Declaration
protected IHitTestService HitTestService { get; }
Property Value
SelectionService
Declaration
protected ISelectionService<IDiagramItem> SelectionService { get; }
Property Value
ServiceLocator
Declaration
protected IGraphServiceLocator ServiceLocator { get; set; }
Property Value
Methods
Initialize(IGraphServiceLocator)
Initializes this tool.
Declaration
public override void Initialize(IGraphServiceLocator serviceLocator)
Parameters
serviceLocator
The locator or controller.
Overrides
KeyDown(KeyArgs)
Handles the key down event.
KeyUp(KeyArgs)
Handles the key up event.
MouseDoubleClick(PointerArgs)
Handles the mouse double click event.
Declaration
public virtual bool MouseDoubleClick(PointerArgs e)
Parameters
e
The PointerArgs instance containing the event data.
Returns
Implements
MouseDown(PointerArgs)
Handles the mouse-down event.
Declaration
public virtual bool MouseDown(PointerArgs e)
Parameters
e
The PointerArgs instance containing the event data.
Returns
Implements
MouseMove(PointerArgs)
Handles the mouse-move event.
Declaration
public virtual bool MouseMove(PointerArgs e)
Parameters
e
The PointerArgs instance containing the event data.
Returns
Implements
MouseUp(PointerArgs)
Handles the mouse-up event.
Declaration
public virtual bool MouseUp(PointerArgs e)
Parameters
e
The PointerArgs instance containing the event data.
Returns
Implements