Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Edge"/> class.
        /// </summary>
        /// <param name="start">Start node from which this edge begins</param>
        /// <param name="finish">Finish node to which this edge runs</param>
        /// <param name="style">Style to apply to the edge</param>
        public Edge(Node start, Node finish, EdgeStyle style)
            : this(start, finish)
        {
            if (style == null)
            {
                throw new ArgumentNullException("style", "Style is a mandatory parameter");
            }

            ArrowHead    = style.ArrowHead;
            ArrowTail    = style.ArrowTail;
            Color        = style.Color;
            Constraining = style.Constraining;
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EdgeGenerator"/> class.
        /// </summary>
        public EdgeGenerator()
        {
            mNodes = new Dictionary<string, Node>();
            mMissingNodeStyle
                = new NodeStyle
                      {
                          FillColor = Color.Red,
                          FontColor = Color.White,
                          Shape = NodeShape.Octagon
                      };

            mDependencyEdges
                = new EdgeStyle
                      {
                          ArrowHead = ArrowShape.Normal,
                          ArrowTail = ArrowShape.None,
                          Color = Color.Gray
                      };
        }