Beispiel #1
0
        /// <exception cref="ArgumentNullException">
        /// <paramref name="relativeShape"/> is null.
        /// </exception>
        public BendPoint(DiagramShape relativeShape, bool relativeToStartShape)
        {
            if (relativeShape == null)
            {
                throw new ArgumentNullException("relativeShape");
            }

            this.relativeShape        = relativeShape;
            this.relativeToStartShape = relativeToStartShape;
        }
Beispiel #2
0
        public BendPoint(SerializationInfo info, StreamingContext ctxt)
        {
            //Get the values from info and assign them to the appropriate properties

            relativeToStartShape = info.GetBoolean("_relativeToStartShape");
            DiagramShape startShape, endShape;

            startShape = (NClass.Core.BinarySerializationHelper.diagram as DiagramControl).GetShape(
                NClass.Core.BinarySerializationHelper.first_entity);
            endShape = (NClass.Core.BinarySerializationHelper.diagram as DiagramControl).GetShape(
                NClass.Core.BinarySerializationHelper.second_entity);
            this.relativeShape = relativeToStartShape ? startShape : endShape;
            this.autoPosition  = false;
            X = (int)info.GetValue("_x", typeof(int));
            Y = (int)info.GetValue("_y", typeof(int));
        }
Beispiel #3
0
 /// <exception cref="ArgumentNullException">
 /// <paramref name="association"/> is null.-or-
 /// <paramref name="startShape"/> is null.-or-
 /// <paramref name="endShape"/> is null.
 /// </exception>
 public Association(AssociationRelation association, DiagramShape startShape,
                    DiagramShape endShape) : base(association, startShape, endShape)
 {
     this.association = association;
 }
Beispiel #4
0
 /// <exception cref="ArgumentNullException">
 /// <paramref name="dependency"/> is null.-or-
 /// <paramref name="startShape"/> is null.-or-
 /// <paramref name="endShape"/> is null.
 /// </exception>
 public Dependency(DependencyRelation dependency, DiagramShape startShape,
                   DiagramShape endShape) : base(dependency, startShape, endShape)
 {
     this.dependency = dependency;
 }
Beispiel #5
0
 /// <exception cref="ArgumentNullException">
 /// <paramref name="generalization"/> is null.-or-
 /// <paramref name="startShape"/> is null.-or-
 /// <paramref name="endShape"/> is null.
 /// </exception>
 public Generalization(GeneralizationRelation generalization, DiagramShape startShape,
                       DiagramShape endShape) : base(generalization, startShape, endShape)
 {
     this.generalization = generalization;
 }
Beispiel #6
0
 /// <exception cref="ArgumentNullException">
 /// <paramref name="relativeShape"/> is null.
 /// </exception>
 public BendPoint(DiagramShape relativeShape, bool relativeToStartShape, bool autoPosition)
     : this(relativeShape, relativeToStartShape)
 {
     this.autoPosition = autoPosition;
 }
Beispiel #7
0
 /// <exception cref="ArgumentNullException">
 /// <paramref name="nesting"/> is null.-or-
 /// <paramref name="startShape"/> is null.-or-
 /// <paramref name="endShape"/> is null.
 /// </exception>
 public Nesting(NestingRelation nesting, DiagramShape startShape,
                DiagramShape endShape) : base(nesting, startShape, endShape)
 {
     this.nesting = nesting;
 }
Beispiel #8
0
 /// <exception cref="ArgumentNullException">
 /// <paramref name="relation"/> is null.-or-
 /// <paramref name="startShape"/> is null.-or-
 /// <paramref name="endShape"/> is null.
 /// </exception>
 public CommentConnection(CommentRelation relation, DiagramShape startShape,
                          DiagramShape endShape) : base(relation, startShape, endShape)
 {
     this.relation = relation;
 }
Beispiel #9
0
 /// <exception cref="ArgumentNullException">
 /// <paramref name="realization"/> is null.-or-
 /// <paramref name="startShape"/> is null.-or-
 /// <paramref name="endShape"/> is null.
 /// </exception>
 public Realization(RealizationRelation realization, DiagramShape startShape,
                    DiagramShape endShape) : base(realization, startShape, endShape)
 {
     this.realization = realization;
 }