Class RotationService
Represents a rotation service.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public class RotationService : GraphServiceBase, IRotationService
Constructors
RotationService(IGraphInternal)
Initializes a new instance of the RotationService class.
Declaration
public RotationService(IGraphInternal graph)
Parameters
IGraphInternal
graph
|
Properties
IsRotating
Gets a value indicating whether this instance is rotating.
Declaration
public bool IsRotating { get; }
Property Value
System.Boolean
|
Implements
RotationOrigin
Gets or sets the rotation origin for the rotation operation.
Declaration
public Point RotationOrigin { get; set; }
Property Value
Point
The rotation origin. |
Methods
CalculateRotationAngle(Point)
Calculates the rotation angle from the new point.
Declaration
protected virtual double CalculateRotationAngle(Point newPoint)
Parameters
Point
newPoint
The new point. |
Returns
System.Double
|
CompleteRotate(Point)
Completes the rotation.
Declaration
public virtual void CompleteRotate(Point mousePoint)
Parameters
Point
mousePoint
The mouse point. |
Implements
InitializeRotate(IEnumerable<IDiagramItem>, Double, Rect)
Initializes the rotate action.
Declaration
public virtual void InitializeRotate(IEnumerable<IDiagramItem> newSelectedItems, double adornerAngle, Rect bounds)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
newSelectedItems
The selected items. |
System.Double
adornerAngle
The adorner angle. |
Rect
bounds
The adorner bounds. |
Implements
Rotate(Point)
Rotates the items to the specified mouse position.
Declaration
public virtual void Rotate(Point mousePosition)
Parameters
Point
mousePosition
The mouse position. |
Implements
StartRotate(Point)
Starts the rotation.
Declaration
public virtual bool StartRotate(Point currentPoint)
Parameters
Point
currentPoint
The current point. |
Returns
System.Boolean
|
Implements
UpdateContainers()
Updates the parent containers of the selected items containers.
Declaration
protected virtual void UpdateContainers()
Events
CompleteRotating
Occurs on complete rotating.
Declaration
public event EventHandler<RotatingEventArgs> CompleteRotating
Event Type
System.EventHandler<RotatingEventArgs>
|
Implements
Rotating
Occurs when rotating.
Declaration
public event EventHandler<RotatingEventArgs> Rotating
Event Type
System.EventHandler<RotatingEventArgs>
|
Implements
StartRotating
Occurs on start rotating.
Declaration
public event EventHandler<CancelingManipulationEventArgs> StartRotating
Event Type
System.EventHandler<CancelingManipulationEventArgs>
|