ToolBase
Base class for Diagram tools.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public abstract class ToolBase : ITool
Inheritance: objectToolBase
Derived Classes:
Implements:
Constructors
Properties
Gets or sets the cursor.
protected Cursor Cursor { get; set; }
The cursor.
Gets or sets the graph view (aka surface).
public IGraphInternal Graph { get; }
The surface.
Implements:
Gets the initial point of the interaction.
protected Point? InitialPoint { get; set; }
The initial point on the surface.
Gets or sets a value indicating whether this tool is active.
public bool IsActive { get; }
True if this instance is active; otherwise, false.
Implements:
Gets or sets the tool service (see ToolService).
public IToolService ToolService { get; set; }
The tool service.
Implements:
Methods
Activates the tool.
Deactivates the tool.
Initializes this tool.
public virtual void Initialize(IGraphServiceLocator serviceLocator)
The locator or controller.
Implements:
Called when tool is IsActive is changed to true.
protected virtual void OnActivated()
Called when tool is IsActive is changed to false.
protected virtual void OnDeactivated()
Restores the cursor.
protected void RestoreCursor()