Class OrgTreeRouter.TreeRouterBase
Base class for the Connection Routers.
Inheritance
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public abstract class TreeRouterBase : Object
Constructors
TreeRouterBase()
Declaration
protected TreeRouterBase()
Properties
Connection
Gets or sets the connection.
Declaration
protected IConnection Connection { get; set; }
Property Value
IConnection
|
ConnectionSpacing
Gets or sets the connection spacing.
Declaration
protected double ConnectionSpacing { get; set; }
Property Value
System.Double
|
SourceInflatedRect
Gets the source inflated rectangle.
Declaration
protected Rect SourceInflatedRect { get; }
Property Value
System.Windows.Rect
|
TargetInflatedRect
Gets the target inflated rectangle.
Declaration
protected Rect TargetInflatedRect { get; }
Property Value
System.Windows.Rect
|
Methods
GetFirstNearPoint(Rect, IConnector)
Gets the first near point from the inflated rectangle (closest ortogonal projection).
Declaration
protected Point GetFirstNearPoint(Rect inflatedRect, IConnector connector)
Parameters
System.Windows.Rect
inflatedRect
The inflated rectangle. |
IConnector
connector
The connector. |
Returns
System.Windows.Point
|
GetRoute(IConnection, Double)
Gets the route.
Declaration
public IList<Point> GetRoute(IConnection connection, double connectionSpacing)
Parameters
IConnection
connection
The connection. |
System.Double
connectionSpacing
The connection spacing. |
Returns
System.Collections.Generic.IList<System.Windows.Point>
|
GetRoutePoints()
Gets the route points.
Declaration
protected abstract IList<Point> GetRoutePoints()
Returns
System.Collections.Generic.IList<System.Windows.Point>
|
GetRouterSpecificRectHorizontalPoints(Boolean, Rect)
Gets the router specific rectangle horizontal points.
Declaration
protected abstract IList<Point> GetRouterSpecificRectHorizontalPoints(bool clockwise, Rect rectangle)
Parameters
System.Boolean
clockwise
If set to |
System.Windows.Rect
rectangle
The rectangle. |
Returns
System.Collections.Generic.IList<System.Windows.Point>
|
GetRouterSpecificRectVerticalPoints(Boolean, Rect)
Gets the router specific rectangle vertical points.
Declaration
protected abstract IList<Point> GetRouterSpecificRectVerticalPoints(bool clockwise, Rect rectangle)
Parameters
System.Boolean
clockwise
If set to |
System.Windows.Rect
rectangle
The rectangle. |
Returns
System.Collections.Generic.IList<System.Windows.Point>
|
GetUnionRectangleRoutePoints()
Gets the points between source and target point lying on a given rectangle.
Declaration
protected IList<Point> GetUnionRectangleRoutePoints()
Returns
System.Collections.Generic.IList<System.Windows.Point>
|
GetUnionRectangleRoutePoints(Rect, Point, Point)
Gets the route points when shapes overlap.
Declaration
protected IList<Point> GetUnionRectangleRoutePoints(Rect rectangle, Point startPoint, Point endPoint)
Parameters
System.Windows.Rect
rectangle
The rectangle. |
System.Windows.Point
startPoint
The start point. |
System.Windows.Point
endPoint
The end point. |
Returns
System.Collections.Generic.IList<System.Windows.Point>
|
SetConnectorsWhenShapesOverlap()
Sets the connectors when shapes overlap.
Declaration
protected void SetConnectorsWhenShapesOverlap()
SetSourceAndTargetConnectors()
Sets the source and target connectors.
Declaration
protected abstract void SetSourceAndTargetConnectors()