Class
RotationService

Represents a rotation service.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class RotationService : GraphServiceBase, IRotationService

Inheritance: objectGraphServiceBaseRotationService

Implements: IRotationService

Inherited Members GraphServiceBase.Graph

Constructors

RotationService(IGraphInternal)

Initializes a new instance of the RotationService class.

Declaration

cs-api-definition
public RotationService(IGraphInternal graph)

Parameters

graph

IGraphInternal

Properties

IsRotating

Gets a value indicating whether this instance is rotating.

Declaration

cs-api-definition
public bool IsRotating { get; }

Property Value

bool

True if this instance is rotating; otherwise, false.

Implements IRotationService.IsRotating

RotationOrigin

Gets or sets the rotation origin for the rotation operation.

Declaration

cs-api-definition
public Point RotationOrigin { get; set; }

Property Value

Point

The rotation origin.

Methods

CalculateRotationAngle(Point)

Calculates the rotation angle from the new point.

Declaration

cs-api-definition
protected virtual double CalculateRotationAngle(Point newPoint)

Parameters

newPoint

Point

The new point.

Returns

double

CompleteRotate(Point)

Completes the rotation.

Declaration

cs-api-definition
public virtual void CompleteRotate(Point mousePoint)

Parameters

mousePoint

Point

The mouse point.

Implements IRotationService.CompleteRotate(Point)

InitializeRotate(IEnumerable<IDiagramItem>, double, Rect)

Initializes the rotate action.

Declaration

cs-api-definition
public virtual void InitializeRotate(IEnumerable<IDiagramItem> newSelectedItems, double adornerAngle, Rect bounds)

Parameters

newSelectedItems

IEnumerable<IDiagramItem>

The selected items.

adornerAngle

double

The adorner angle.

bounds

Rect

The adorner bounds.

Implements IRotationService.InitializeRotate(IEnumerable<IDiagramItem>, double, Rect)

Rotate(Point)

Rotates the items to the specified mouse position.

Declaration

cs-api-definition
public virtual void Rotate(Point mousePosition)

Parameters

mousePosition

Point

The mouse position.

Implements IRotationService.Rotate(Point)

StartRotate(Point)

Starts the rotation.

Declaration

cs-api-definition
public virtual bool StartRotate(Point currentPoint)

Parameters

currentPoint

Point

The current point.

Returns

bool

Implements IRotationService.StartRotate(Point)

UpdateContainers()

Updates the parent containers of the selected items containers.

Declaration

cs-api-definition
protected virtual void UpdateContainers()

Events

CompleteRotating

Occurs on complete rotating.

Declaration

cs-api-definition
public event EventHandler<RotatingEventArgs> CompleteRotating

Event Value

EventHandler<RotatingEventArgs>

Implements IRotationService.CompleteRotating

Rotating

Occurs when rotating.

Declaration

cs-api-definition
public event EventHandler<RotatingEventArgs> Rotating

Event Value

EventHandler<RotatingEventArgs>

Implements IRotationService.Rotating

StartRotating

Occurs on start rotating.

Declaration

cs-api-definition
public event EventHandler<CancelingManipulationEventArgs> StartRotating

Event Value

EventHandler<CancelingManipulationEventArgs>

Implements IRotationService.StartRotating