ClassOrgTreeRouter.TreeRouterBase
Base class for the Connection Routers.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
[SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
public abstract class OrgTreeRouter.TreeRouterBase
Inheritance: objectOrgTreeRouter.TreeRouterBase
Derived Classes:
Constructors
TreeRouterBase()
Declaration
protected TreeRouterBase()
Properties
Connection
Gets or sets the connection.
Declaration
protected IConnection Connection { get; set; }
Property Value
ConnectionSpacing
Gets or sets the connection spacing.
Declaration
protected double ConnectionSpacing { get; set; }
Property Value
SourceInflatedRect
Gets the source inflated rectangle.
Declaration
protected Rect SourceInflatedRect { get; }
Property Value
Rect
TargetInflatedRect
Gets the target inflated rectangle.
Declaration
protected Rect TargetInflatedRect { get; }
Property Value
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
inflatedRect
Rect
The inflated rectangle.
connector
The connector.
Returns
Point
GetRoute(IConnection, double)
Gets the route.
Declaration
public IList<Point> GetRoute(IConnection connection, double connectionSpacing)
Parameters
connection
The connection.
connectionSpacing
The connection spacing.
Returns
IList<Point>
GetRoutePoints()
Gets the route points.
GetRouterSpecificRectHorizontalPoints(bool, Rect)
Gets the router specific rectangle horizontal points.
GetRouterSpecificRectVerticalPoints(bool, Rect)
Gets the router specific rectangle vertical points.
GetUnionRectangleRoutePoints()
Gets the points between source and target point lying on a given rectangle.
Declaration
protected IList<Point> GetUnionRectangleRoutePoints()
Returns
IList<Point>
GetUnionRectangleRoutePoints(Rect, Point, Point)
Gets the route points when shapes overlap.
Declaration
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
protected void SetConnectorsWhenShapesOverlap()
SetSourceAndTargetConnectors()
Sets the source and target connectors.
Declaration
protected abstract void SetSourceAndTargetConnectors()