New to Telerik UI for WPFStart a free 30-day trial

Base class for the Connection Routers.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

C#
public abstract class OrgTreeRouter.TreeRouterBase

Inheritance: objectOrgTreeRouter.TreeRouterBase

Derived Classes: OrgTreeRouter.DirectionalRouterOrgTreeRouter.TipOverTreeRouter

Constructors

C#
protected TreeRouterBase()

Properties

Gets or sets the connection.

C#
protected IConnection Connection { get; set; }

Gets or sets the connection spacing.

C#
protected double ConnectionSpacing { get; set; }

Gets the source inflated rectangle.

C#
protected Rect SourceInflatedRect { get; }

Gets the target inflated rectangle.

C#
protected Rect TargetInflatedRect { get; }

Methods

Gets the first near point from the inflated rectangle (closest ortogonal projection).

C#
protected Point GetFirstNearPoint(Rect inflatedRect, IConnector connector)
Parameters:inflatedRectRect

The inflated rectangle.

connectorIConnector

The connector.

Returns:

Point

Gets the route.

C#
public IList<Point> GetRoute(IConnection connection, double connectionSpacing)
Parameters:connectionIConnection

The connection.

connectionSpacingdouble

The connection spacing.

Returns:

IList<Point>

Gets the route points.

C#
protected abstract IList<Point> GetRoutePoints()
Returns:

IList<Point>

Gets the router specific rectangle horizontal points.

C#
protected abstract IList<Point> GetRouterSpecificRectHorizontalPoints(bool clockwise, Rect rectangle)
Parameters:clockwisebool

If set to false returns the reversed list.

rectangleRect

The rectangle.

Returns:

IList<Point>

Gets the router specific rectangle vertical points.

C#
protected abstract IList<Point> GetRouterSpecificRectVerticalPoints(bool clockwise, Rect rectangle)
Parameters:clockwisebool

If set to false returns the reversed list.

rectangleRect

The rectangle.

Returns:

IList<Point>

Gets the points between source and target point lying on a given rectangle.

C#
protected IList<Point> GetUnionRectangleRoutePoints()
Returns:

IList<Point>

Gets the route points when shapes overlap.

C#
protected IList<Point> GetUnionRectangleRoutePoints(Rect rectangle, Point startPoint, Point endPoint)
Parameters:rectangleRect

The rectangle.

startPointPoint

The start point.

endPointPoint

The end point.

Returns:

IList<Point>

Sets the connectors when shapes overlap.

C#
protected void SetConnectorsWhenShapesOverlap()

Sets the source and target connectors.

C#
protected abstract void SetSourceAndTargetConnectors()