Class
OrgTreeRouter.TreeRouterBase

Base class for the Connection Routers.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
public abstract class OrgTreeRouter.TreeRouterBase

Inheritance: objectOrgTreeRouter.TreeRouterBase

Derived Classes: OrgTreeRouter.DirectionalRouterOrgTreeRouter.TipOverTreeRouter

Constructors

TreeRouterBase()

Declaration

cs-api-definition
protected TreeRouterBase()

Properties

Connection

Gets or sets the connection.

Declaration

cs-api-definition
protected IConnection Connection { get; set; }

Property Value

IConnection

ConnectionSpacing

Gets or sets the connection spacing.

Declaration

cs-api-definition
protected double ConnectionSpacing { get; set; }

Property Value

double

SourceInflatedRect

Gets the source inflated rectangle.

Declaration

cs-api-definition
protected Rect SourceInflatedRect { get; }

Property Value

Rect

TargetInflatedRect

Gets the target inflated rectangle.

Declaration

cs-api-definition
protected Rect TargetInflatedRect { get; }

Property Value

Rect

Methods

GetFirstNearPoint(Rect, IConnector)

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

Declaration

cs-api-definition
protected Point GetFirstNearPoint(Rect inflatedRect, IConnector connector)

Parameters

inflatedRect

Rect

The inflated rectangle.

connector

IConnector

The connector.

Returns

Point

GetRoute(IConnection, double)

Gets the route.

Declaration

cs-api-definition
public IList<Point> GetRoute(IConnection connection, double connectionSpacing)

Parameters

connection

IConnection

The connection.

connectionSpacing

double

The connection spacing.

Returns

IList<Point>

GetRoutePoints()

Gets the route points.

Declaration

cs-api-definition
protected abstract IList<Point> GetRoutePoints()

Returns

IList<Point>

GetRouterSpecificRectHorizontalPoints(bool, Rect)

Gets the router specific rectangle horizontal points.

Declaration

cs-api-definition
protected abstract IList<Point> GetRouterSpecificRectHorizontalPoints(bool clockwise, Rect rectangle)

Parameters

clockwise

bool

If set to false returns the reversed list.

rectangle

Rect

The rectangle.

Returns

IList<Point>

GetRouterSpecificRectVerticalPoints(bool, Rect)

Gets the router specific rectangle vertical points.

Declaration

cs-api-definition
protected abstract IList<Point> GetRouterSpecificRectVerticalPoints(bool clockwise, Rect rectangle)

Parameters

clockwise

bool

If set to false returns the reversed list.

rectangle

Rect

The rectangle.

Returns

IList<Point>

GetUnionRectangleRoutePoints()

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

Declaration

cs-api-definition
protected IList<Point> GetUnionRectangleRoutePoints()

Returns

IList<Point>

GetUnionRectangleRoutePoints(Rect, Point, Point)

Gets the route points when shapes overlap.

Declaration

cs-api-definition
protected IList<Point> GetUnionRectangleRoutePoints(Rect rectangle, Point startPoint, Point endPoint)

Parameters

rectangle

Rect

The rectangle.

startPoint

Point

The start point.

endPoint

Point

The end point.

Returns

IList<Point>

SetConnectorsWhenShapesOverlap()

Sets the connectors when shapes overlap.

Declaration

cs-api-definition
protected void SetConnectorsWhenShapesOverlap()

SetSourceAndTargetConnectors()

Sets the source and target connectors.

Declaration

cs-api-definition
protected abstract void SetSourceAndTargetConnectors()