Base class for the Connection Routers.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public abstract class OrgTreeRouter.TreeRouterBase
Inheritance: objectOrgTreeRouter.TreeRouterBase
Derived Classes:
Constructors
protected TreeRouterBase()
Properties
Gets or sets the connection.
protected IConnection Connection { get; set; }
Gets or sets the connection spacing.
protected double ConnectionSpacing { get; set; }
Gets the source inflated rectangle.
protected Rect SourceInflatedRect { get; }
Gets the target inflated rectangle.
protected Rect TargetInflatedRect { get; }
Methods
Gets the first near point from the inflated rectangle (closest ortogonal projection).
protected Point GetFirstNearPoint(Rect inflatedRect, IConnector connector)
The inflated rectangle.
connectorIConnectorThe connector.
Returns:Point
Gets the route.
public IList<Point> GetRoute(IConnection connection, double connectionSpacing)
The connection.
connectionSpacingdoubleThe connection spacing.
Returns:IList<Point>
GetRoutePoints()
IList<Point>
Gets the route points.
Gets the points between source and target point lying on a given rectangle.
Gets the route points when shapes overlap.
protected IList<Point> GetUnionRectangleRoutePoints(Rect rectangle, Point startPoint, Point endPoint)
The rectangle.
startPointPointThe start point.
endPointPointThe end point.
Returns:IList<Point>
Sets the connectors when shapes overlap.
protected void SetConnectorsWhenShapesOverlap()
Sets the source and target connectors.
protected abstract void SetSourceAndTargetConnectors()