예제 #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;
        }
예제 #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));
        }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #7
0
파일: Nesting.cs 프로젝트: Veggie13/raptor
 /// <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;
 }
예제 #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;
 }
예제 #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;
 }