ClassRotationService
Represents a rotation service.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.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
Point
The rotation origin.
Methods
CalculateRotationAngle(Point)
Calculates the rotation angle from the new point.
Declaration
protected virtual double CalculateRotationAngle(Point newPoint)
Parameters
newPoint
Point
The new point.
Returns
CompleteRotate(Point)
Completes the rotation.
Declaration
public virtual void CompleteRotate(Point mousePoint)
Parameters
mousePoint
Point
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
The selected items.
adornerAngle
The adorner angle.
bounds
Rect
The adorner bounds.
Implements
Rotate(Point)
Rotates the items to the specified mouse position.
Declaration
public virtual void Rotate(Point mousePosition)
Parameters
mousePosition
Point
The mouse position.
Implements
StartRotate(Point)
Starts the rotation.
Declaration
public virtual bool StartRotate(Point currentPoint)
Parameters
currentPoint
Point
The current point.
Returns
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 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