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