Changeset 3499 for trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs
- Timestamp:
- 04/22/10 22:23:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs
r3487 r3499 141 141 base.OnContentChanged(); 142 142 this.categoricalMapping.Clear(); 143 this.UpdateComboBoxes(); 143 UpdateComboBoxes(); 144 UpdateDataPoints(); 144 145 } 145 146 private void Content_ColumnNamesChanged(object sender, EventArgs e) { … … 154 155 this.yAxisComboBox.Items.Clear(); 155 156 this.sizeComboBox.Items.Clear(); 156 this.xAxisComboBox.Items.AddRange(Matrix.ColumnNames.ToArray()); 157 this.yAxisComboBox.Items.AddRange(Matrix.ColumnNames.ToArray()); 158 this.sizeComboBox.Items.Add(constantLabel); 159 this.sizeComboBox.Items.AddRange(Matrix.ColumnNames.ToArray()); 157 if (Content != null) { 158 this.xAxisComboBox.Items.AddRange(Matrix.ColumnNames.ToArray()); 159 this.yAxisComboBox.Items.AddRange(Matrix.ColumnNames.ToArray()); 160 this.sizeComboBox.Items.Add(constantLabel); 161 this.sizeComboBox.Items.AddRange(Matrix.ColumnNames.ToArray()); 162 } 160 163 } 161 164 … … 172 175 Series series = this.chart.Series[0]; 173 176 series.Points.Clear(); 174 foreach (IRun run in this.Content) 175 this.AddDataPoint(run); 177 if (Content != null) { 178 foreach (IRun run in this.Content) 179 this.AddDataPoint(run); 180 } 176 181 } 177 182 private void AddDataPoint(IRun run) { … … 358 363 } 359 364 360 private string CreateTooltip(int runIndex) {361 StringBuilder builder = new StringBuilder();362 builder.AppendLine(this.Content.ElementAt(runIndex).Name);363 int columnIndex = 0;364 foreach (string columnName in Matrix.ColumnNames) {365 builder.Append(columnName);366 builder.Append(": ");367 builder.AppendLine(Matrix.GetValue(runIndex, columnIndex));368 columnIndex++;369 }370 return builder.ToString();371 }372 373 365 private void zoomButton_CheckedChanged(object sender, EventArgs e) { 374 366 this.isSelecting = selectButton.Checked; … … 377 369 this.chart.ChartAreas[0].AxisY.ScaleView.Zoomable = !isSelecting; 378 370 } 379 380 371 private void colorButton_Click(object sender, EventArgs e) { 381 372 if (colorDialog.ShowDialog(this) == DialogResult.OK) {
Note: See TracChangeset
for help on using the changeset viewer.