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.Windows.Input.ICommand for adding a shape to the diagram.
Declaration
protected CompositeCommand AddShapeCommand { get; set; }
Property Value
CompositeCommand
|
Geometry
The geometry of the shape which the tool creates.
Declaration
public Geometry Geometry { get; set; }
Property Value
System.Windows.Media.Geometry
|
ServiceLocator
Graph service locator.
Declaration
protected IGraphServiceLocator ServiceLocator { get; set; }
Property Value
IGraphServiceLocator
|
Methods
CreateShape()
Creates a shape via controller which checks if GraphSource is used.
Declaration
protected IGeometryShape CreateShape()
Returns
IGeometryShape
|
Initialize(IGraphServiceLocator)
Initializes this tool.
Declaration
public override void Initialize(IGraphServiceLocator serviceLocator)
Parameters
IGraphServiceLocator
serviceLocator
The locator or controller. |
Overrides
MouseDoubleClick(PointerArgs)
Handles the mouse double click event.
Declaration
public 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 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 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 bool MouseUp(PointerArgs e)
Parameters
PointerArgs
e
The PointerArgs instance containing the event data. |
Returns
System.Boolean
|