Changeset 16057 for branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews
- Timestamp:
- 08/06/18 18:15:29 (6 years ago)
- Location:
- branches/2839_HiveProjectManagement
- Files:
-
- 2 deleted
- 14 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement
- Property svn:mergeinfo changed
-
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views
- Property svn:mergeinfo changed
-
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.Designer.cs
r14185 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 54 54 this.yAxisComboBox = new System.Windows.Forms.ComboBox(); 55 55 this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart(); 56 this.openBubbleChartViewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 56 57 this.noRunsLabel = new System.Windows.Forms.Label(); 57 58 this.splitContainer = new System.Windows.Forms.SplitContainer(); … … 132 133 this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove); 133 134 // 135 // openBubbleChartViewToolStripMenuItem 136 // 137 this.openBubbleChartViewToolStripMenuItem.Name = "openBubbleChartViewToolStripMenuItem"; 138 this.openBubbleChartViewToolStripMenuItem.Size = new System.Drawing.Size(256, 22); 139 this.openBubbleChartViewToolStripMenuItem.Text = "Open BubbleChart View"; 140 this.openBubbleChartViewToolStripMenuItem.Click += new System.EventHandler(this.openBubbleChartViewToolStripMenuItem_Click); 141 // 134 142 // noRunsLabel 135 143 // … … 239 247 private System.Windows.Forms.ToolTip tooltip; 240 248 protected System.Windows.Forms.CheckBox showStatisticsCheckBox; 249 private System.Windows.Forms.ToolStripMenuItem openBubbleChartViewToolStripMenuItem; 241 250 } 242 251 } -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs
r14791 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 48 48 public RunCollectionBoxPlotView() { 49 49 InitializeComponent(); 50 chart.ContextMenuStrip.Items.Insert(0, openBubbleChartViewToolStripMenuItem); 51 50 52 categoricalMapping = new Dictionary<int, Dictionary<object, double>>(); 51 53 seriesCache = new SortedDictionary<double, Series>(); … … 211 213 212 214 private void UpdateStatistics() { 213 DoubleMatrix matrix = new DoubleMatrix( 9, seriesCache.Count);215 DoubleMatrix matrix = new DoubleMatrix(10, seriesCache.Count); 214 216 matrix.SortableView = false; 215 217 List<string> columnNames = new List<string>(); … … 224 226 AxisDimension axisDimension = (AxisDimension)Enum.Parse(typeof(AxisDimension), selectedAxis); 225 227 switch (axisDimension) { 226 case AxisDimension.Color: value = new StringValue(run.Color.ToString()); 228 case AxisDimension.Color: 229 value = new StringValue(run.Color.ToString()); 227 230 break; 228 231 } … … 236 239 } 237 240 matrix.ColumnNames = columnNames; 238 matrix.RowNames = new string[] { "Count", "Minimum", "Maximum", "Median", "Average", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile" };241 matrix.RowNames = new string[] { "Count", "Minimum", "Maximum", "Median", "Average", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile", "Interquartile Range" }; 239 242 240 243 for (int i = 0; i < seriesCache.Count; i++) { … … 250 253 matrix[7, i] = seriesValues.Quantile(0.25); 251 254 matrix[8, i] = seriesValues.Quantile(0.75); 255 matrix[9, i] = matrix[8, i] - matrix[7, i]; 252 256 } 253 257 statisticsMatrixView.Content = matrix; … … 276 280 double? yValue; 277 281 278 if (!xAxisComboBox.DroppedDown) 279 this.xAxisValue = (string)xAxisComboBox.SelectedItem; 280 if (!yAxisComboBox.DroppedDown) 281 this.yAxisValue = (string)yAxisComboBox.SelectedItem; 282 this.xAxisValue = (string)xAxisComboBox.SelectedItem; 283 this.yAxisValue = (string)yAxisComboBox.SelectedItem; 282 284 283 285 xValue = GetValue(run, this.xAxisValue); … … 382 384 UpdateDataPoints(); 383 385 } 386 384 387 private void UpdateAxisLabels() { 385 388 Axis xAxis = this.chart.ChartAreas[BoxPlotChartAreaName].AxisX; 386 389 Axis yAxis = this.chart.ChartAreas[BoxPlotChartAreaName].AxisY; 387 390 int axisDimensionCount = Enum.GetNames(typeof(AxisDimension)).Count(); 388 //mkommend: combobox.SelectedIndex could not be used as this changes during hovering over possible values 389 var xSAxisSelectedIndex = xAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(xAxisValue); 390 var ySAxisSelectedIndex = yAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(yAxisValue); 391 SetCustomAxisLabels(xAxis, xSAxisSelectedIndex - axisDimensionCount); 392 SetCustomAxisLabels(yAxis, ySAxisSelectedIndex - axisDimensionCount); 393 if (xAxisValue != null) 394 xAxis.Title = xAxisValue; 395 if (yAxisValue != null) 396 yAxis.Title = yAxisValue; 391 392 SetCustomAxisLabels(xAxis, xAxisComboBox.SelectedIndex - axisDimensionCount); 393 SetCustomAxisLabels(yAxis, yAxisComboBox.SelectedIndex - axisDimensionCount); 394 395 xAxis.Title = (string)xAxisComboBox.SelectedItem; 396 yAxis.Title = (string)yAxisComboBox.SelectedItem; 397 397 } 398 398 … … 402 402 403 403 private void SetCustomAxisLabels(Axis axis, int dimension) { 404 if (Content == null) { return; } 405 if (!Content.Any()) { return; } 406 404 407 axis.CustomLabels.Clear(); 405 408 if (categoricalMapping.ContainsKey(dimension)) { … … 445 448 } 446 449 450 private void openBubbleChartViewToolStripMenuItem_Click(object sender, EventArgs e) { 451 RunCollectionBubbleChartView bubbleChartView = new RunCollectionBubbleChartView(); 452 bubbleChartView.Content = this.Content; 453 bubbleChartView.xAxisComboBox.SelectedItem = xAxisComboBox.SelectedItem; 454 bubbleChartView.yAxisComboBox.SelectedItem = yAxisComboBox.SelectedItem; 455 bubbleChartView.Show(); 456 } 457 447 458 private void chart_MouseMove(object sender, MouseEventArgs e) { 448 459 string newTooltipText = string.Empty; … … 463 474 } 464 475 465 466 467 468 469 476 public bool StatisticsVisible { 477 get { return splitContainer.Panel2Collapsed; } 478 set { splitContainer.Panel2Collapsed = value; } 479 } 480 470 481 public void SetXAxis(string axisName) { 471 482 xAxisComboBox.SelectedItem = axisName; -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.Designer.cs
r14889 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 201 201 // chart 202 202 // 203 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 204 | System.Windows.Forms.AnchorStyles.Left) 203 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 204 | System.Windows.Forms.AnchorStyles.Left) 205 205 | System.Windows.Forms.AnchorStyles.Right))); 206 206 chartArea1.Name = "ChartArea1"; … … 455 455 456 456 private System.Windows.Forms.Label xAxisLabel; 457 privateSystem.Windows.Forms.ComboBox xAxisComboBox;457 internal System.Windows.Forms.ComboBox xAxisComboBox; 458 458 private System.Windows.Forms.Label yAxisLabel; 459 privateSystem.Windows.Forms.ComboBox yAxisComboBox;459 internal System.Windows.Forms.ComboBox yAxisComboBox; 460 460 private System.Windows.Forms.TrackBar yTrackBar; 461 461 private System.Windows.Forms.TrackBar xTrackBar; -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.cs
r15266 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionChartAggregationView.Designer.cs
r14185 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionChartAggregationView.cs
r14185 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionRLDView.Designer.cs
r15125 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionRLDView.cs
r15126 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 7Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.Designer.cs
r14185 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs
r14185 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionView.Designer.cs
r14185 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2839_HiveProjectManagement/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionView.cs
r14793 r16057 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 271 271 } 272 272 } 273 } else if (e.KeyData == (Keys.A | Keys.Control)) { 274 try { 275 itemsListView.BeginUpdate(); 276 foreach (ListViewItem item in itemsListView.Items) 277 item.Selected = true; 278 } finally { itemsListView.EndUpdate(); } 273 279 } 274 280 }
Note: See TracChangeset
for help on using the changeset viewer.