Class ShapeTool
A Mouse tool which can be used to create different geometry shapes.
Inherited Members
Namespace: Telerik.Windows.Controls.Diagrams.Ribbon
Assembly: Telerik.Windows.Controls.Diagrams.Ribbon.dll
Syntax
public class ShapeTool : ToolBase, ITool, IMouseListener
Constructors
ShapeTool()
Properties
AddShapeCommand
Gets or sets the System.
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
System.
|
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.
Declaration
protected IGeometryShape CreateShape()
Returns
Initialize(IGraphServiceLocator)
Initializes this tool.
Declaration
public override void Initialize(IGraphServiceLocator serviceLocator)
Parameters
IGraph The locator or controller. |
Overrides
MouseDoubleClick(PointerArgs)
Handles the mouse double click event.
Declaration
public bool MouseDoubleClick(PointerArgs e)
Parameters
Pointer The Pointer |
Returns
System.
|
Implements
MouseDown(PointerArgs)
Handles the mouse-down event.
Declaration
public bool MouseDown(PointerArgs e)
Parameters
Pointer The Pointer |
Returns
System.
|
Implements
MouseMove(PointerArgs)
Handles the mouse-move event.
Declaration
public bool MouseMove(PointerArgs e)
Parameters
Pointer The Pointer |
Returns
System.
|
Implements
MouseUp(PointerArgs)
Handles the mouse-up event.
Declaration
public bool MouseUp(PointerArgs e)
Parameters
Pointer The Pointer |
Returns
System.
|