ClassRotationService
Represents a rotation service.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class RotationService : GraphServiceBase, IRotationService
Inheritance: objectGraphServiceBaseRotationService
Implements:
Inherited Members
Constructors
RotationService(IGraphInternal)
Initializes a new instance of the RotationService class.
Declaration
public RotationService(IGraphInternal graph)
Parameters
graph
Properties
IsRotating
Gets a value indicating whether this instance is rotating.
Declaration
public bool IsRotating { get; }
Property Value
True if this instance is rotating; otherwise, false.
Implements
RotationOrigin
Gets or sets the rotation origin for the rotation operation.
Declaration
public Point RotationOrigin { get; set; }
Property Value
The rotation origin.
Methods
CalculateRotationAngle(Point)
Calculates the rotation angle from the new point.
CompleteRotate(Point)
Completes the rotation.
Declaration
public virtual void CompleteRotate(Point mousePoint)
Parameters
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
newSelectedItems
IEnumerable<IDiagramItem>
The selected items.
adornerAngle
The adorner angle.
bounds
The adorner bounds.
Implements
Rotate(Point)
Rotates the items to the specified mouse position.
Declaration
public virtual void Rotate(Point mousePosition)
Parameters
mousePosition
The mouse position.
Implements
StartRotate(Point)
Starts the rotation.
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 Value
Implements
Rotating
Occurs when rotating.
Declaration
public event EventHandler<RotatingEventArgs> Rotating
Event Value
Implements
StartRotating
Occurs on start rotating.
Declaration
public event EventHandler<CancelingManipulationEventArgs> StartRotating
Event Value
Implements