Changeset 12822 for branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/RunCollectionViews
- Timestamp:
- 07/31/15 08:36:14 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionRLDView.cs
r12808 r12822 23 23 using System.Collections.Generic; 24 24 using System.ComponentModel; 25 using System.Drawing; 25 26 using System.Linq; 26 27 using System.Windows.Forms; … … 37 38 public partial class RunCollectionRLDView : ItemView { 38 39 private const string AllRuns = "All Runs"; 40 41 private static readonly Color[] colors = new[] { 42 Color.FromArgb(0x20, 0x4A, 0x87), 43 Color.FromArgb(0xC1, 0x7D, 0x11), 44 Color.FromArgb(0x4E, 0x9A, 0x06), 45 Color.FromArgb(0x75, 0x50, 0x7B), 46 Color.FromArgb(0x72, 0x9F, 0xCF), 47 Color.FromArgb(0xA4, 0x00, 0x00), 48 Color.FromArgb(0xAD, 0x7F, 0xA8), 49 Color.FromArgb(0xF5, 0x79, 0x00), 50 Color.FromArgb(0x55, 0x57, 0x53), 51 Color.FromArgb(0xEF, 0x29, 0x29), 52 Color.FromArgb(0xED, 0xD4, 0x00), 53 Color.FromArgb(0x73, 0xD2, 0x16), 54 }; 39 55 40 56 public new RunCollection Content { … … 208 224 select Tuple.Create(g.Key, g.ToList())).ToList(); 209 225 var xAxisTitles = new HashSet<string>(); 226 var colorCount = 0; 227 var lineStyles = new[] { 228 DataRowVisualProperties.DataRowLineStyle.Solid, 229 DataRowVisualProperties.DataRowLineStyle.Dash, 230 DataRowVisualProperties.DataRowLineStyle.DashDot, 231 DataRowVisualProperties.DataRowLineStyle.Dot 232 }; 233 var lineStyleCount = 0; 210 234 foreach (var group in groupedRuns) { 211 235 var hits = new Dictionary<string, SortedList<double, double>>(); … … 258 282 VisualProperties = { 259 283 ChartType = DataRowVisualProperties.DataRowChartType.StepLine, 260 LineWidth = 2 284 LineWidth = 2, 285 Color = colors[colorCount], 286 LineStyle = lineStyles[lineStyleCount] 261 287 } 262 288 }; … … 268 294 combinedDataTable.Rows.Add(row); 269 295 } 296 colorCount = (colorCount + 1) % colors.Length; 297 if (colorCount == 0) lineStyleCount = (lineStyleCount + 1) % lineStyles.Length; 270 298 } 271 299 combinedDataTable.VisualProperties.XAxisTitle = string.Join(" / ", xAxisTitles);
Note: See TracChangeset
for help on using the changeset viewer.