Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShapeDotAttribute"/> class with the given <see cref="T:IDotShape"/> that describes
 /// the shape of the node.
 /// </summary>
 /// <param name="shape">The shape that is assigned to the node with this attribute, must be effective.</param>
 /// <exception cref="ArgumentNullException">If the given shape is not effective.</exception>
 /// <remarks>
 /// <para>The exists a default constructor <see cref="C:ShapeDotAttribute()"/> where the shape is by default
 /// a circle.</para>
 /// </remarks>
 public ShapeDotAttribute(IDotShape shape)
     : base(AttributeName)
 {
     if (shape == null) {
         throw new ArgumentNullException ("shape", "The shape must be effective.");
     }
     Contract.EndContractBlock ();
     this.Shape = shape;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShapeDotAttribute"/> class with the given <see cref="T:IDotShape"/> that describes
 /// the shape of the node.
 /// </summary>
 /// <param name="shape">The shape that is assigned to the node with this attribute, must be effective.</param>
 /// <exception cref="ArgumentNullException">If the given shape is not effective.</exception>
 /// <remarks>
 /// <para>The exists a default constructor <see cref="C:ShapeDotAttribute()"/> where the shape is by default
 /// a circle.</para>
 /// </remarks>
 public ShapeDotAttribute(IDotShape shape) : base(AttributeName)
 {
     if (shape == null)
     {
         throw new ArgumentNullException("shape", "The shape must be effective.");
     }
     Contract.EndContractBlock();
     this.Shape = shape;
 }