コード例 #1
0
 /// <summary>
 /// Replaces the type of the arc with inherited.
 /// </summary>
 /// <param name="origArc">The orig arc.</param>
 /// <param name="newType">The new type.</param>
 public void replaceHyperArcWithInheritedType(hyperarc origArc, Type newType)
 {
     addHyperArc(origArc.nodes, origArc.name, newType);
     origArc.copy(hyperarcs.Last());
     hyperarcs.Last().DisplayShape = origArc.DisplayShape;
     removeHyperArc(origArc);
 }
コード例 #2
0
ファイル: designGraph.cs プロジェクト: LSturtew/GraphSynth
        /// <summary>
        /// Replaces the type of the arc with inherited.
        /// </summary>
        /// <param name="origArc">The orig arc.</param>
        /// <param name="newType">The new type.</param>
        public void replaceHyperArcWithInheritedType(hyperarc origArc, Type newType)
        {
            var newHa = addHyperArc(origArc.nodes, origArc.name, newType);

            origArc.copy(newHa);
            newHa.DisplayShape = origArc.DisplayShape;
            removeHyperArc(origArc);
        }