ShapeTool
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
Initializes a new instance of the ShapeTool class.
public ShapeTool()
Properties
Gets or sets the ICommand for adding a shape to the diagram.
protected CompositeCommand AddShapeCommand { get; set; }
Geometry
Geometry
The geometry of the shape which the tool creates.
public Geometry Geometry { get; set; }
Graph service locator.
protected IGraphServiceLocator ServiceLocator { get; set; }
Methods
Creates a shape via controller which checks if GraphSource is used.
Initializes this tool.
public override void Initialize(IGraphServiceLocator serviceLocator)
The locator or controller.
Overrides:
Handles the mouse double click event.
public bool MouseDoubleClick(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Implements:
Handles the mouse-down event.
public bool MouseDown(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Implements:
Handles the mouse-move event.
public bool MouseMove(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Implements:
Handles the mouse-up event.
public bool MouseUp(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Implements: