Connection
Connection Class
Section titled “Connection Class”Namespace: Nodify
Assembly: Nodify
Inheritance: Object → DispatcherObject → DependencyObject → Visual → UIElement → FrameworkElement → Shape → BaseConnection → Connection
References: Connector, NodifyEditor
Represents a cubic bezier curve.
public class Connection : BaseConnection
Constructors
Section titled “Constructors”Connection()
Section titled “Connection()”public Connection();
Methods
Section titled “Methods”DrawDirectionalArrowsGeometry(StreamGeometryContext, Point, Point)
Section titled “DrawDirectionalArrowsGeometry(StreamGeometryContext, Point, Point)”protected override void DrawDirectionalArrowsGeometry(StreamGeometryContext context, Point source, Point target);
Parameters
context
StreamGeometryContext
source
Point
target
Point
DrawLineGeometry(StreamGeometryContext, Point, Point)
Section titled “DrawLineGeometry(StreamGeometryContext, Point, Point)”protected override ValueTuple<ValueTuple<Point, Point>, ValueTuple<Point, Point>> DrawLineGeometry(StreamGeometryContext context, Point source, Point target);
Parameters
context
StreamGeometryContext
source
Point
target
Point
Returns
ValueTuple<ValueTuple<Point, Point>, ValueTuple<Point, Point>>
GetTextPosition(FormattedText, Point, Point)
Section titled “GetTextPosition(FormattedText, Point, Point)”protected override Point GetTextPosition(FormattedText text, Point source, Point target);
Parameters
text
FormattedText
source
Point
target
Point
Returns
InterpolateCubicBezier(Point, Point, Point, Point, Double)
Section titled “InterpolateCubicBezier(Point, Point, Point, Point, Double)”protected static Point InterpolateCubicBezier(Point P0, Point P1, Point P2, Point P3, double t);
Parameters
P0
Point
P1
Point
P2
Point
P3
Point
t
Double
Returns