예제 #1
0
        public GraphArrow AddArrow(GraphNode start, GraphNode end)
        {
            var element = new GraphArrow
            {
                HeadHeight = 10,
                HeadWidth  = 5
            };

            element.SetStartNode(start);
            // Set arrow position manually until we dont have ending box.
            element.SetEndNode(end);

            Children.Add(element);
            return(element);
        }
예제 #2
0
        public GraphArrow AddArrow(GraphNode node, Point curPos)
        {
            var element = new GraphArrow
            {
                HeadHeight = 10,
                HeadWidth  = 5
            };

            element.SetStartNode(node);
            // Set arrow position manually until we dont have ending box.
            element.SetEndPoint(curPos);

            Children.Add(element);
            return(element);
        }