/// <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; }
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)); }
/// <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; }
/// <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; }
/// <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; }
/// <exception cref="ArgumentNullException"> /// <paramref name="relativeShape"/> is null. /// </exception> public BendPoint(DiagramShape relativeShape, bool relativeToStartShape, bool autoPosition) : this(relativeShape, relativeToStartShape) { this.autoPosition = autoPosition; }
/// <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; }
/// <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; }
/// <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; }