ClassShapeTool
A Mouse tool which can be used to create different geometry shapes.
Definition
Namespace:Telerik.Windows.Controls.Diagrams.Ribbon
Assembly:Telerik.Windows.Controls.Diagrams.Ribbon.dll
Syntax:
public class ShapeTool : ToolBase, ITool, IMouseListener
Inheritance: objectToolBaseShapeTool
Implements:
Inherited Members
Constructors
ShapeTool()
Initializes a new instance of the ShapeTool class.
Declaration
public ShapeTool()
Properties
AddShapeCommand
Gets or sets the ICommand for adding a shape to the diagram.
Declaration
protected CompositeCommand AddShapeCommand { get; set; }
Property Value
Geometry
The geometry of the shape which the tool creates.
Declaration
public Geometry Geometry { get; set; }
Property Value
Geometry
ServiceLocator
Graph service locator.
Declaration
protected IGraphServiceLocator ServiceLocator { get; set; }
Property Value
Methods
CreateShape()
Creates a shape via controller which checks if GraphSource is used.
Initialize(IGraphServiceLocator)
Initializes this tool.
Declaration
public override void Initialize(IGraphServiceLocator serviceLocator)
Parameters
serviceLocator
The locator or controller.
Overrides
MouseDoubleClick(PointerArgs)
Handles the mouse double click event.
Declaration
public bool MouseDoubleClick(PointerArgs e)
Parameters
e
The PointerArgs instance containing the event data.
Returns
Implements
MouseDown(PointerArgs)
Handles the mouse-down event.
Declaration
public bool MouseDown(PointerArgs e)
Parameters
e
The PointerArgs instance containing the event data.
Returns
Implements
MouseMove(PointerArgs)
Handles the mouse-move event.
Declaration
public bool MouseMove(PointerArgs e)
Parameters
e
The PointerArgs instance containing the event data.
Returns
Implements
MouseUp(PointerArgs)
Handles the mouse-up event.
Declaration
public bool MouseUp(PointerArgs e)
Parameters
e
The PointerArgs instance containing the event data.
Returns
Implements