Changeset 12208 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking
- Timestamp:
- 03/17/15 08:48:41 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisGenealogyGraphView.Designer.cs
r12017 r12208 46 46 private void InitializeComponent() { 47 47 this.groupBox1 = new System.Windows.Forms.GroupBox(); 48 this.nodeWeightLabel = new System.Windows.Forms.Label(); 49 this.nodeWeightLabelLabel = new System.Windows.Forms.Label(); 48 50 this.navigateRightButton = new System.Windows.Forms.Button(); 49 51 this.navigateLeftButton = new System.Windows.Forms.Button(); … … 76 78 // groupBox1 77 79 // 80 this.groupBox1.Controls.Add(this.nodeWeightLabel); 81 this.groupBox1.Controls.Add(this.nodeWeightLabelLabel); 78 82 this.groupBox1.Controls.Add(this.navigateRightButton); 79 83 this.groupBox1.Controls.Add(this.navigateLeftButton); … … 84 88 this.groupBox1.Controls.Add(this.nodeQualityLabel); 85 89 this.groupBox1.Controls.Add(this.nodeQualityLabelLabel); 86 this.groupBox1.Location = new System.Drawing.Point( 420, 4);90 this.groupBox1.Location = new System.Drawing.Point(624, 4); 87 91 this.groupBox1.Name = "groupBox1"; 88 this.groupBox1.Size = new System.Drawing.Size(6 24, 44);92 this.groupBox1.Size = new System.Drawing.Size(617, 44); 89 93 this.groupBox1.TabIndex = 2; 90 94 this.groupBox1.TabStop = false; 91 95 this.groupBox1.Text = "Current Node"; 92 96 // 97 // nodeWeightLabel 98 // 99 this.nodeWeightLabel.AutoSize = true; 100 this.nodeWeightLabel.Location = new System.Drawing.Point(285, 20); 101 this.nodeWeightLabel.Name = "nodeWeightLabel"; 102 this.nodeWeightLabel.Size = new System.Drawing.Size(0, 13); 103 this.nodeWeightLabel.TabIndex = 8; 104 // 105 // nodeWeightLabelLabel 106 // 107 this.nodeWeightLabelLabel.AutoSize = true; 108 this.nodeWeightLabelLabel.Location = new System.Drawing.Point(241, 20); 109 this.nodeWeightLabelLabel.Name = "nodeWeightLabelLabel"; 110 this.nodeWeightLabelLabel.Size = new System.Drawing.Size(44, 13); 111 this.nodeWeightLabelLabel.TabIndex = 7; 112 this.nodeWeightLabelLabel.Text = "Weight:"; 113 // 93 114 // navigateRightButton 94 115 // 95 116 this.navigateRightButton.Image = global::HeuristicLab.Problems.DataAnalysis.Symbolic.Views.Properties.Resources.LargeLeftDiagonal_235; 96 this.navigateRightButton.Location = new System.Drawing.Point( 309, 15);117 this.navigateRightButton.Location = new System.Drawing.Point(589, 14); 97 118 this.navigateRightButton.Name = "navigateRightButton"; 98 119 this.navigateRightButton.Size = new System.Drawing.Size(22, 22); … … 104 125 // 105 126 this.navigateLeftButton.Image = global::HeuristicLab.Problems.DataAnalysis.Symbolic.Views.Properties.Resources.LargeRightDiagonal_238; 106 this.navigateLeftButton.Location = new System.Drawing.Point( 281, 15);127 this.navigateLeftButton.Location = new System.Drawing.Point(561, 14); 107 128 this.navigateLeftButton.Name = "navigateLeftButton"; 108 129 this.navigateLeftButton.Size = new System.Drawing.Size(22, 22); … … 114 135 // 115 136 this.nodeDegreeLabel.AutoSize = true; 116 this.nodeDegreeLabel.Location = new System.Drawing.Point(2 35, 20);137 this.nodeDegreeLabel.Location = new System.Drawing.Point(205, 20); 117 138 this.nodeDegreeLabel.Name = "nodeDegreeLabel"; 118 139 this.nodeDegreeLabel.Size = new System.Drawing.Size(0, 13); … … 122 143 // 123 144 this.nodeDegreeLabelLabel.AutoSize = true; 124 this.nodeDegreeLabelLabel.Location = new System.Drawing.Point(1 92, 20);145 this.nodeDegreeLabelLabel.Location = new System.Drawing.Point(154, 20); 125 146 this.nodeDegreeLabelLabel.Name = "nodeDegreeLabelLabel"; 126 147 this.nodeDegreeLabelLabel.Size = new System.Drawing.Size(45, 13); … … 131 152 // 132 153 this.nodeRankLabel.AutoSize = true; 133 this.nodeRankLabel.Location = new System.Drawing.Point(1 38, 20);154 this.nodeRankLabel.Location = new System.Drawing.Point(123, 20); 134 155 this.nodeRankLabel.Name = "nodeRankLabel"; 135 156 this.nodeRankLabel.Size = new System.Drawing.Size(0, 13); … … 139 160 // 140 161 this.nodeRankLabelLabel.AutoSize = true; 141 this.nodeRankLabelLabel.Location = new System.Drawing.Point( 96, 20);162 this.nodeRankLabelLabel.Location = new System.Drawing.Point(81, 20); 142 163 this.nodeRankLabelLabel.Name = "nodeRankLabelLabel"; 143 164 this.nodeRankLabelLabel.Size = new System.Drawing.Size(36, 13); … … 192 213 private System.Windows.Forms.Button navigateRightButton; 193 214 private System.Windows.Forms.Button navigateLeftButton; 215 private System.Windows.Forms.Label nodeWeightLabelLabel; 216 private System.Windows.Forms.Label nodeWeightLabel; 194 217 } 195 218 } -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisGenealogyGraphView.cs
r12017 r12208 92 92 nodeRankLabel.Text = String.Format("{0:0.0}", graphNode.Rank); 93 93 nodeDegreeLabel.Text = String.Format("{0} / {1}", graphNode.InDegree, graphNode.OutDegree); 94 nodeWeightLabel.Text = String.Format("{0:0.00}", graphNode.Weight); 94 95 95 96 if (openNew_CheckBox.Checked) { … … 143 144 genealogyGraphChart.UpdateEnabled = true; 144 145 genealogyGraphChart.EnforceUpdate(); 145 MainFormManager.MainForm.ShowContent(traceGraph); // display the fragment graph on the screen 146 if (openNew_CheckBox.Checked) 147 MainFormManager.MainForm.ShowContent(traceGraph); // display the fragment graph on the screen 148 149 var max = traceGraph.Vertices.Max(x => x.Weight); 150 151 genealogyGraphChart.UpdateEnabled = false; 152 foreach (var traceNode in traceGraph.Vertices) { 153 var g = Content.GetByContent(traceNode.Data); 154 g.Weight = traceNode.Weight; 155 var v = genealogyGraphChart.GetMappedNode(g); 156 if (v != null) { 157 int i = (int)Math.Round(g.Weight * (ColorGradient.Colors.Count - 1) / max); 158 159 v.Brush = new SolidBrush(ColorGradient.Colors[i]); 160 } 161 } 162 genealogyGraphChart.UpdateEnabled = true; 163 genealogyGraphChart.EnforceUpdate(); 146 164 } 147 165 } else {
Note: See TracChangeset
for help on using the changeset viewer.