Class
RoutingService

Service handling the routing of the connections.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class RoutingService : GraphServiceBase, IRoutingService

Inheritance: objectGraphServiceBaseRoutingService

Implements: IRoutingService

Inherited Members GraphServiceBase.Graph

Constructors

RoutingService(IGraphInternal)

Initializes a new instance of the RoutingService class.

Declaration

cs-api-definition
public RoutingService(IGraphInternal graph)

Parameters

graph

IGraphInternal

The graph.

Properties

AutoUpdate

Gets or sets the auto update property.

Declaration

cs-api-definition
public bool AutoUpdate { get; set; }

Property Value

bool

Implements IRoutingService.AutoUpdate

FreeRouter

Gets or sets the floating connection router.

Declaration

cs-api-definition
public IRouter FreeRouter { get; set; }

Property Value

IRouter

Implements IRoutingService.FreeRouter

ReflexiveRouter

Gets or sets the reflexive router.

Declaration

cs-api-definition
public IRouter ReflexiveRouter { get; set; }

Property Value

IRouter

The reflexive router.

Implements IRoutingService.ReflexiveRouter

Router

Gets or sets the connection router.

Declaration

cs-api-definition
public IRouter Router { get; set; }

Property Value

IRouter

Implements IRoutingService.Router

Methods

AutoUpdateConnections(IShape)

Automatically updates the connections.

Declaration

cs-api-definition
public virtual void AutoUpdateConnections(IShape shape)

Parameters

shape

IShape

The shape which bound's have changed.

Implements IRoutingService.AutoUpdateConnections(IShape)

FindExtendedRoute(IConnection)

Creates the connection route.

Declaration

cs-api-definition
public virtual ConnectionRoute FindExtendedRoute(IConnection connection)

Parameters

connection

IConnection

The connection which should be routed.

Returns

ConnectionRoute

A list of intermediate points defining the route and the start and end connectors.

Implements IRoutingService.FindExtendedRoute(IConnection)

Remarks

The routing works only for the Spline and Polyline types.

FindRoute(IConnection)

Creates the connection route.

Declaration

cs-api-definition
public virtual IList<Point> FindRoute(IConnection connection)

Parameters

connection

IConnection

The connection which should be routed.

Returns

IList<Point>

A list of intermediate points defining the route.

Implements IRoutingService.FindRoute(IConnection)

Remarks

The routing works only for the Spline and Polyline types.