Changeset 9258
- Timestamp:
- 02/28/13 15:38:12 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r8339 r9258 20 20 #endregion 21 21 22 using HeuristicLab.Collections; 23 using HeuristicLab.Core.Views; 24 using HeuristicLab.MainForm; 22 25 using System; 23 26 using System.Collections.Generic; … … 26 29 using System.Windows.Forms; 27 30 using System.Windows.Forms.DataVisualization.Charting; 28 using HeuristicLab.Collections;29 using HeuristicLab.Core.Views;30 using HeuristicLab.MainForm;31 31 32 32 namespace HeuristicLab.Analysis.Views { … … 115 115 public void ShowConfiguration() { 116 116 if (Content != null) { 117 using ( DataTableVisualPropertiesDialogdialog = new DataTableVisualPropertiesDialog(Content)) {117 using (var dialog = new DataTableVisualPropertiesDialog(Content)) { 118 118 dialog.ShowDialog(this); 119 119 } … … 123 123 foreach (var row in rows) { 124 124 RegisterDataRowEvents(row); 125 Seriesseries = new Series(row.Name);125 var series = new Series(row.Name); 126 126 if (row.VisualProperties.DisplayName.Trim() != String.Empty) series.LegendText = row.VisualProperties.DisplayName; 127 127 else series.LegendText = row.Name; … … 231 231 if (!Content.VisualProperties.AxisTitleColor.IsEmpty) area.AxisY2.TitleForeColor = Content.VisualProperties.AxisTitleColor; 232 232 area.AxisY2.Title = Content.VisualProperties.SecondYAxisTitle; 233 234 area.AxisX.IsLogarithmic = Content.VisualProperties.XAxisLogScale; 235 area.AxisX2.IsLogarithmic = Content.VisualProperties.SecondXAxisLogScale; 236 area.AxisY.IsLogarithmic = Content.VisualProperties.YAxisLogScale; 237 area.AxisY2.IsLogarithmic = Content.VisualProperties.SecondYAxisLogScale; 233 238 } 234 239 … … 500 505 break; 501 506 default: { 507 bool yLogarithmic = series.YAxisType == AxisType.Primary 508 ? Content.VisualProperties.YAxisLogScale 509 : Content.VisualProperties.SecondYAxisLogScale; 510 bool xLogarithmic = series.XAxisType == AxisType.Primary 511 ? Content.VisualProperties.XAxisLogScale 512 : Content.VisualProperties.SecondXAxisLogScale; 502 513 for (int i = 0; i < row.Values.Count; i++) { 503 514 var value = row.Values[i]; 504 DataPointpoint = new DataPoint();505 point.XValue = row.VisualProperties.StartIndexZero ? i : i + 1;506 if (IsInvalidValue(value) )515 var point = new DataPoint(); 516 point.XValue = row.VisualProperties.StartIndexZero && !xLogarithmic ? i : i + 1; 517 if (IsInvalidValue(value) || (yLogarithmic && value <= 0)) 507 518 point.IsEmpty = true; 508 519 else -
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.Designer.cs
r8015 r9258 51 51 this.label4 = new System.Windows.Forms.Label(); 52 52 this.xAxisPrimaryGroupBox = new System.Windows.Forms.GroupBox(); 53 this.xAxisPrimaryLogScaleCheckBox = new System.Windows.Forms.CheckBox(); 53 54 this.panel2 = new System.Windows.Forms.Panel(); 54 55 this.xAxisPrimaryMaximumFixedRadioButton = new System.Windows.Forms.RadioButton(); … … 64 65 this.label11 = new System.Windows.Forms.Label(); 65 66 this.xAxisSecondaryGroupBox = new System.Windows.Forms.GroupBox(); 67 this.xAxisSecondaryLogScaleCheckBox = new System.Windows.Forms.CheckBox(); 66 68 this.panel4 = new System.Windows.Forms.Panel(); 67 69 this.xAxisSecondaryMaximumFixedRadioButton = new System.Windows.Forms.RadioButton(); … … 80 82 this.yAxisTabPage = new System.Windows.Forms.TabPage(); 81 83 this.yAxisSecondaryGroupBox = new System.Windows.Forms.GroupBox(); 84 this.yAxisSecondaryLogScaleCheckBox = new System.Windows.Forms.CheckBox(); 82 85 this.panel8 = new System.Windows.Forms.Panel(); 83 86 this.yAxisSecondaryMaximumFixedRadioButton = new System.Windows.Forms.RadioButton(); … … 91 94 this.label14 = new System.Windows.Forms.Label(); 92 95 this.yAxisPrimaryGroupBox = new System.Windows.Forms.GroupBox(); 96 this.yAxisPrimaryLogScaleCheckBox = new System.Windows.Forms.CheckBox(); 93 97 this.panel6 = new System.Windows.Forms.Panel(); 94 98 this.yAxisPrimaryMaximumFixedRadioButton = new System.Windows.Forms.RadioButton(); … … 141 145 // yAxisPrimaryTitleTextBox 142 146 // 143 this.yAxisPrimaryTitleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 144 145 this.yAxisPrimaryTitleTextBox.Location = new System.Drawing.Point( 66, 19);147 this.yAxisPrimaryTitleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 148 | System.Windows.Forms.AnchorStyles.Right))); 149 this.yAxisPrimaryTitleTextBox.Location = new System.Drawing.Point(74, 19); 146 150 this.yAxisPrimaryTitleTextBox.Name = "yAxisPrimaryTitleTextBox"; 147 this.yAxisPrimaryTitleTextBox.Size = new System.Drawing.Size(36 9, 20);151 this.yAxisPrimaryTitleTextBox.Size = new System.Drawing.Size(361, 20); 148 152 this.yAxisPrimaryTitleTextBox.TabIndex = 1; 149 153 this.yAxisPrimaryTitleTextBox.Validated += new System.EventHandler(this.yPrimaryTitleTextBox_Validated); … … 151 155 // yAxisSecondaryTitleTextBox 152 156 // 153 this.yAxisSecondaryTitleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 154 155 this.yAxisSecondaryTitleTextBox.Location = new System.Drawing.Point( 66, 19);157 this.yAxisSecondaryTitleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 158 | System.Windows.Forms.AnchorStyles.Right))); 159 this.yAxisSecondaryTitleTextBox.Location = new System.Drawing.Point(74, 19); 156 160 this.yAxisSecondaryTitleTextBox.Name = "yAxisSecondaryTitleTextBox"; 157 this.yAxisSecondaryTitleTextBox.Size = new System.Drawing.Size(36 9, 20);161 this.yAxisSecondaryTitleTextBox.Size = new System.Drawing.Size(361, 20); 158 162 this.yAxisSecondaryTitleTextBox.TabIndex = 1; 159 163 this.yAxisSecondaryTitleTextBox.Validated += new System.EventHandler(this.ySecondaryTitleTextBox_Validated); … … 170 174 // xAxisPrimaryGroupBox 171 175 // 172 this.xAxisPrimaryGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 173 | System.Windows.Forms.AnchorStyles.Right))); 176 this.xAxisPrimaryGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 177 | System.Windows.Forms.AnchorStyles.Right))); 178 this.xAxisPrimaryGroupBox.Controls.Add(this.xAxisPrimaryLogScaleCheckBox); 174 179 this.xAxisPrimaryGroupBox.Controls.Add(this.panel2); 175 180 this.xAxisPrimaryGroupBox.Controls.Add(this.panel1); … … 182 187 this.xAxisPrimaryGroupBox.Location = new System.Drawing.Point(3, 3); 183 188 this.xAxisPrimaryGroupBox.Name = "xAxisPrimaryGroupBox"; 184 this.xAxisPrimaryGroupBox.Size = new System.Drawing.Size(441, 99);189 this.xAxisPrimaryGroupBox.Size = new System.Drawing.Size(441, 126); 185 190 this.xAxisPrimaryGroupBox.TabIndex = 0; 186 191 this.xAxisPrimaryGroupBox.TabStop = false; 187 192 this.xAxisPrimaryGroupBox.Text = "Primary Axis"; 188 193 // 194 // xAxisPrimaryLogScaleCheckBox 195 // 196 this.xAxisPrimaryLogScaleCheckBox.AutoSize = true; 197 this.xAxisPrimaryLogScaleCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 198 this.xAxisPrimaryLogScaleCheckBox.Location = new System.Drawing.Point(6, 99); 199 this.xAxisPrimaryLogScaleCheckBox.Name = "xAxisPrimaryLogScaleCheckBox"; 200 this.xAxisPrimaryLogScaleCheckBox.Size = new System.Drawing.Size(83, 17); 201 this.xAxisPrimaryLogScaleCheckBox.TabIndex = 8; 202 this.xAxisPrimaryLogScaleCheckBox.Text = "Logarithmic:"; 203 this.xAxisPrimaryLogScaleCheckBox.UseVisualStyleBackColor = true; 204 this.xAxisPrimaryLogScaleCheckBox.CheckedChanged += new System.EventHandler(this.xAxisPrimaryLogScaleCheckBox_CheckedChanged); 205 // 189 206 // panel2 190 207 // 191 208 this.panel2.Controls.Add(this.xAxisPrimaryMaximumFixedRadioButton); 192 209 this.panel2.Controls.Add(this.xAxisPrimaryMaximumAutoRadioButton); 193 this.panel2.Location = new System.Drawing.Point( 66, 71);210 this.panel2.Location = new System.Drawing.Point(74, 71); 194 211 this.panel2.Name = "panel2"; 195 212 this.panel2.Size = new System.Drawing.Size(106, 20); … … 224 241 this.panel1.Controls.Add(this.xAxisPrimaryMinimumFixedRadioButton); 225 242 this.panel1.Controls.Add(this.xAxisPrimaryMinimumAutoRadioButton); 226 this.panel1.Location = new System.Drawing.Point( 66, 45);243 this.panel1.Location = new System.Drawing.Point(74, 45); 227 244 this.panel1.Name = "panel1"; 228 245 this.panel1.Size = new System.Drawing.Size(106, 20); … … 255 272 // xAxisPrimaryMinimumFixedTextBox 256 273 // 257 this.xAxisPrimaryMinimumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 258 274 this.xAxisPrimaryMinimumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 275 | System.Windows.Forms.AnchorStyles.Right))); 259 276 this.xAxisPrimaryMinimumFixedTextBox.Location = new System.Drawing.Point(191, 45); 260 277 this.xAxisPrimaryMinimumFixedTextBox.Name = "xAxisPrimaryMinimumFixedTextBox"; … … 265 282 // xAxisPrimaryMaximumFixedTextBox 266 283 // 267 this.xAxisPrimaryMaximumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 268 284 this.xAxisPrimaryMaximumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 285 | System.Windows.Forms.AnchorStyles.Right))); 269 286 this.xAxisPrimaryMaximumFixedTextBox.Location = new System.Drawing.Point(191, 71); 270 287 this.xAxisPrimaryMaximumFixedTextBox.Name = "xAxisPrimaryMaximumFixedTextBox"; … … 293 310 // xAxisPrimaryTitleTextBox 294 311 // 295 this.xAxisPrimaryTitleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 296 297 this.xAxisPrimaryTitleTextBox.Location = new System.Drawing.Point( 66, 19);312 this.xAxisPrimaryTitleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 313 | System.Windows.Forms.AnchorStyles.Right))); 314 this.xAxisPrimaryTitleTextBox.Location = new System.Drawing.Point(74, 19); 298 315 this.xAxisPrimaryTitleTextBox.Name = "xAxisPrimaryTitleTextBox"; 299 this.xAxisPrimaryTitleTextBox.Size = new System.Drawing.Size(36 9, 20);316 this.xAxisPrimaryTitleTextBox.Size = new System.Drawing.Size(361, 20); 300 317 this.xAxisPrimaryTitleTextBox.TabIndex = 1; 301 318 this.xAxisPrimaryTitleTextBox.Validated += new System.EventHandler(this.xPrimaryTitleTextBox_Validated); … … 312 329 // xAxisSecondaryGroupBox 313 330 // 314 this.xAxisSecondaryGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 315 | System.Windows.Forms.AnchorStyles.Left) 316 | System.Windows.Forms.AnchorStyles.Right))); 331 this.xAxisSecondaryGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 332 | System.Windows.Forms.AnchorStyles.Left) 333 | System.Windows.Forms.AnchorStyles.Right))); 334 this.xAxisSecondaryGroupBox.Controls.Add(this.xAxisSecondaryLogScaleCheckBox); 317 335 this.xAxisSecondaryGroupBox.Controls.Add(this.panel4); 318 336 this.xAxisSecondaryGroupBox.Controls.Add(this.panel3); … … 323 341 this.xAxisSecondaryGroupBox.Controls.Add(this.label5); 324 342 this.xAxisSecondaryGroupBox.Controls.Add(this.label6); 325 this.xAxisSecondaryGroupBox.Location = new System.Drawing.Point(3, 1 08);343 this.xAxisSecondaryGroupBox.Location = new System.Drawing.Point(3, 135); 326 344 this.xAxisSecondaryGroupBox.Name = "xAxisSecondaryGroupBox"; 327 this.xAxisSecondaryGroupBox.Size = new System.Drawing.Size(441, 99);345 this.xAxisSecondaryGroupBox.Size = new System.Drawing.Size(441, 125); 328 346 this.xAxisSecondaryGroupBox.TabIndex = 1; 329 347 this.xAxisSecondaryGroupBox.TabStop = false; 330 348 this.xAxisSecondaryGroupBox.Text = "Secondary Axis"; 331 349 // 350 // xAxisSecondaryLogScaleCheckBox 351 // 352 this.xAxisSecondaryLogScaleCheckBox.AutoSize = true; 353 this.xAxisSecondaryLogScaleCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 354 this.xAxisSecondaryLogScaleCheckBox.Location = new System.Drawing.Point(6, 99); 355 this.xAxisSecondaryLogScaleCheckBox.Name = "xAxisSecondaryLogScaleCheckBox"; 356 this.xAxisSecondaryLogScaleCheckBox.Size = new System.Drawing.Size(83, 17); 357 this.xAxisSecondaryLogScaleCheckBox.TabIndex = 8; 358 this.xAxisSecondaryLogScaleCheckBox.Text = "Logarithmic:"; 359 this.xAxisSecondaryLogScaleCheckBox.UseVisualStyleBackColor = true; 360 this.xAxisSecondaryLogScaleCheckBox.CheckedChanged += new System.EventHandler(this.xAxisSecondaryLogScaleCheckBox_CheckedChanged); 361 // 332 362 // panel4 333 363 // 334 364 this.panel4.Controls.Add(this.xAxisSecondaryMaximumFixedRadioButton); 335 365 this.panel4.Controls.Add(this.xAxisSecondaryMaximumAutoRadioButton); 336 this.panel4.Location = new System.Drawing.Point( 66, 71);366 this.panel4.Location = new System.Drawing.Point(74, 71); 337 367 this.panel4.Name = "panel4"; 338 368 this.panel4.Size = new System.Drawing.Size(106, 20); … … 367 397 this.panel3.Controls.Add(this.xAxisSecondaryMinimumFixedRadioButton); 368 398 this.panel3.Controls.Add(this.xAxisSecondaryMinimumAutoRadioButton); 369 this.panel3.Location = new System.Drawing.Point( 66, 45);399 this.panel3.Location = new System.Drawing.Point(74, 45); 370 400 this.panel3.Name = "panel3"; 371 401 this.panel3.Size = new System.Drawing.Size(106, 20); … … 398 428 // xAxisSecondaryMinimumFixedTextBox 399 429 // 400 this.xAxisSecondaryMinimumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 401 430 this.xAxisSecondaryMinimumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 431 | System.Windows.Forms.AnchorStyles.Right))); 402 432 this.xAxisSecondaryMinimumFixedTextBox.Location = new System.Drawing.Point(191, 45); 403 433 this.xAxisSecondaryMinimumFixedTextBox.Name = "xAxisSecondaryMinimumFixedTextBox"; … … 408 438 // xAxisSecondaryMaximumFixedTextBox 409 439 // 410 this.xAxisSecondaryMaximumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 411 440 this.xAxisSecondaryMaximumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 441 | System.Windows.Forms.AnchorStyles.Right))); 412 442 this.xAxisSecondaryMaximumFixedTextBox.Location = new System.Drawing.Point(191, 71); 413 443 this.xAxisSecondaryMaximumFixedTextBox.Name = "xAxisSecondaryMaximumFixedTextBox"; … … 427 457 // xAxisSecondaryTitleTextBox 428 458 // 429 this.xAxisSecondaryTitleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 430 431 this.xAxisSecondaryTitleTextBox.Location = new System.Drawing.Point( 66, 19);459 this.xAxisSecondaryTitleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 460 | System.Windows.Forms.AnchorStyles.Right))); 461 this.xAxisSecondaryTitleTextBox.Location = new System.Drawing.Point(74, 19); 432 462 this.xAxisSecondaryTitleTextBox.Name = "xAxisSecondaryTitleTextBox"; 433 this.xAxisSecondaryTitleTextBox.Size = new System.Drawing.Size(36 9, 20);463 this.xAxisSecondaryTitleTextBox.Size = new System.Drawing.Size(361, 20); 434 464 this.xAxisSecondaryTitleTextBox.TabIndex = 1; 435 465 this.xAxisSecondaryTitleTextBox.Validated += new System.EventHandler(this.xSecondaryTitleTextBox_Validated); … … 455 485 // axisTabControl 456 486 // 457 this.axisTabControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 458 487 this.axisTabControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 488 | System.Windows.Forms.AnchorStyles.Right))); 459 489 this.axisTabControl.Controls.Add(this.xAxisTabPage); 460 490 this.axisTabControl.Controls.Add(this.yAxisTabPage); … … 462 492 this.axisTabControl.Name = "axisTabControl"; 463 493 this.axisTabControl.SelectedIndex = 0; 464 this.axisTabControl.Size = new System.Drawing.Size(455, 2 36);494 this.axisTabControl.Size = new System.Drawing.Size(455, 289); 465 495 this.axisTabControl.TabIndex = 8; 466 496 // … … 472 502 this.xAxisTabPage.Name = "xAxisTabPage"; 473 503 this.xAxisTabPage.Padding = new System.Windows.Forms.Padding(3); 474 this.xAxisTabPage.Size = new System.Drawing.Size(447, 2 10);504 this.xAxisTabPage.Size = new System.Drawing.Size(447, 263); 475 505 this.xAxisTabPage.TabIndex = 0; 476 506 this.xAxisTabPage.Text = "X-Axis"; … … 484 514 this.yAxisTabPage.Name = "yAxisTabPage"; 485 515 this.yAxisTabPage.Padding = new System.Windows.Forms.Padding(3); 486 this.yAxisTabPage.Size = new System.Drawing.Size(447, 2 10);516 this.yAxisTabPage.Size = new System.Drawing.Size(447, 263); 487 517 this.yAxisTabPage.TabIndex = 1; 488 518 this.yAxisTabPage.Text = "Y-Axis"; … … 491 521 // yAxisSecondaryGroupBox 492 522 // 493 this.yAxisSecondaryGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 494 | System.Windows.Forms.AnchorStyles.Left) 495 | System.Windows.Forms.AnchorStyles.Right))); 523 this.yAxisSecondaryGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 524 | System.Windows.Forms.AnchorStyles.Left) 525 | System.Windows.Forms.AnchorStyles.Right))); 526 this.yAxisSecondaryGroupBox.Controls.Add(this.yAxisSecondaryLogScaleCheckBox); 496 527 this.yAxisSecondaryGroupBox.Controls.Add(this.panel8); 497 528 this.yAxisSecondaryGroupBox.Controls.Add(this.panel7); … … 502 533 this.yAxisSecondaryGroupBox.Controls.Add(this.label13); 503 534 this.yAxisSecondaryGroupBox.Controls.Add(this.label14); 504 this.yAxisSecondaryGroupBox.Location = new System.Drawing.Point(3, 1 08);535 this.yAxisSecondaryGroupBox.Location = new System.Drawing.Point(3, 135); 505 536 this.yAxisSecondaryGroupBox.Name = "yAxisSecondaryGroupBox"; 506 this.yAxisSecondaryGroupBox.Size = new System.Drawing.Size(441, 99);537 this.yAxisSecondaryGroupBox.Size = new System.Drawing.Size(441, 125); 507 538 this.yAxisSecondaryGroupBox.TabIndex = 1; 508 539 this.yAxisSecondaryGroupBox.TabStop = false; 509 540 this.yAxisSecondaryGroupBox.Text = "Secondary Axis"; 510 541 // 542 // yAxisSecondaryLogScaleCheckBox 543 // 544 this.yAxisSecondaryLogScaleCheckBox.AutoSize = true; 545 this.yAxisSecondaryLogScaleCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 546 this.yAxisSecondaryLogScaleCheckBox.Location = new System.Drawing.Point(6, 99); 547 this.yAxisSecondaryLogScaleCheckBox.Name = "yAxisSecondaryLogScaleCheckBox"; 548 this.yAxisSecondaryLogScaleCheckBox.Size = new System.Drawing.Size(83, 17); 549 this.yAxisSecondaryLogScaleCheckBox.TabIndex = 9; 550 this.yAxisSecondaryLogScaleCheckBox.Text = "Logarithmic:"; 551 this.yAxisSecondaryLogScaleCheckBox.UseVisualStyleBackColor = true; 552 this.yAxisSecondaryLogScaleCheckBox.CheckedChanged += new System.EventHandler(this.yAxisSecondaryLogScaleCheckBox_CheckedChanged); 553 // 511 554 // panel8 512 555 // 513 556 this.panel8.Controls.Add(this.yAxisSecondaryMaximumFixedRadioButton); 514 557 this.panel8.Controls.Add(this.yAxisSecondaryMaximumAutoRadioButton); 515 this.panel8.Location = new System.Drawing.Point( 66, 71);558 this.panel8.Location = new System.Drawing.Point(74, 71); 516 559 this.panel8.Name = "panel8"; 517 560 this.panel8.Size = new System.Drawing.Size(106, 20); … … 546 589 this.panel7.Controls.Add(this.yAxisSecondaryMinimumFixedRadioButton); 547 590 this.panel7.Controls.Add(this.yAxisSecondaryMinimumAutoRadioButton); 548 this.panel7.Location = new System.Drawing.Point( 66, 45);591 this.panel7.Location = new System.Drawing.Point(74, 45); 549 592 this.panel7.Name = "panel7"; 550 593 this.panel7.Size = new System.Drawing.Size(106, 20); … … 577 620 // yAxisSecondaryMinimumFixedTextBox 578 621 // 579 this.yAxisSecondaryMinimumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 580 622 this.yAxisSecondaryMinimumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 623 | System.Windows.Forms.AnchorStyles.Right))); 581 624 this.yAxisSecondaryMinimumFixedTextBox.Location = new System.Drawing.Point(191, 45); 582 625 this.yAxisSecondaryMinimumFixedTextBox.Name = "yAxisSecondaryMinimumFixedTextBox"; … … 587 630 // yAxisSecondaryMaximumFixedTextBox 588 631 // 589 this.yAxisSecondaryMaximumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 590 632 this.yAxisSecondaryMaximumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 633 | System.Windows.Forms.AnchorStyles.Right))); 591 634 this.yAxisSecondaryMaximumFixedTextBox.Location = new System.Drawing.Point(191, 71); 592 635 this.yAxisSecondaryMaximumFixedTextBox.Name = "yAxisSecondaryMaximumFixedTextBox"; … … 615 658 // yAxisPrimaryGroupBox 616 659 // 617 this.yAxisPrimaryGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 618 | System.Windows.Forms.AnchorStyles.Right))); 660 this.yAxisPrimaryGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 661 | System.Windows.Forms.AnchorStyles.Right))); 662 this.yAxisPrimaryGroupBox.Controls.Add(this.yAxisPrimaryLogScaleCheckBox); 619 663 this.yAxisPrimaryGroupBox.Controls.Add(this.panel6); 620 664 this.yAxisPrimaryGroupBox.Controls.Add(this.panel5); … … 627 671 this.yAxisPrimaryGroupBox.Location = new System.Drawing.Point(3, 3); 628 672 this.yAxisPrimaryGroupBox.Name = "yAxisPrimaryGroupBox"; 629 this.yAxisPrimaryGroupBox.Size = new System.Drawing.Size(441, 99);673 this.yAxisPrimaryGroupBox.Size = new System.Drawing.Size(441, 126); 630 674 this.yAxisPrimaryGroupBox.TabIndex = 0; 631 675 this.yAxisPrimaryGroupBox.TabStop = false; 632 676 this.yAxisPrimaryGroupBox.Text = "Primary Axis"; 633 677 // 678 // yAxisPrimaryLogScaleCheckBox 679 // 680 this.yAxisPrimaryLogScaleCheckBox.AutoSize = true; 681 this.yAxisPrimaryLogScaleCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 682 this.yAxisPrimaryLogScaleCheckBox.Location = new System.Drawing.Point(6, 99); 683 this.yAxisPrimaryLogScaleCheckBox.Name = "yAxisPrimaryLogScaleCheckBox"; 684 this.yAxisPrimaryLogScaleCheckBox.Size = new System.Drawing.Size(83, 17); 685 this.yAxisPrimaryLogScaleCheckBox.TabIndex = 10; 686 this.yAxisPrimaryLogScaleCheckBox.Text = "Logarithmic:"; 687 this.yAxisPrimaryLogScaleCheckBox.UseVisualStyleBackColor = true; 688 this.yAxisPrimaryLogScaleCheckBox.CheckedChanged += new System.EventHandler(this.yAxisPrimaryLogScaleCheckBox_CheckedChanged); 689 // 634 690 // panel6 635 691 // 636 692 this.panel6.Controls.Add(this.yAxisPrimaryMaximumFixedRadioButton); 637 693 this.panel6.Controls.Add(this.yAxisPrimaryMaximumAutoRadioButton); 638 this.panel6.Location = new System.Drawing.Point( 66, 71);694 this.panel6.Location = new System.Drawing.Point(74, 71); 639 695 this.panel6.Name = "panel6"; 640 696 this.panel6.Size = new System.Drawing.Size(106, 20); … … 669 725 this.panel5.Controls.Add(this.yAxisPrimaryMinimumAutoRadioButton); 670 726 this.panel5.Controls.Add(this.yAxisPrimaryMinimumFixedRadioButton); 671 this.panel5.Location = new System.Drawing.Point( 66, 45);727 this.panel5.Location = new System.Drawing.Point(74, 45); 672 728 this.panel5.Name = "panel5"; 673 729 this.panel5.Size = new System.Drawing.Size(106, 20); … … 700 756 // yAxisPrimaryMinimumFixedTextBox 701 757 // 702 this.yAxisPrimaryMinimumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 703 758 this.yAxisPrimaryMinimumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 759 | System.Windows.Forms.AnchorStyles.Right))); 704 760 this.yAxisPrimaryMinimumFixedTextBox.Location = new System.Drawing.Point(191, 45); 705 761 this.yAxisPrimaryMinimumFixedTextBox.Name = "yAxisPrimaryMinimumFixedTextBox"; … … 710 766 // yAxisPrimaryMaximumFixedTextBox 711 767 // 712 this.yAxisPrimaryMaximumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 713 768 this.yAxisPrimaryMaximumFixedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 769 | System.Windows.Forms.AnchorStyles.Right))); 714 770 this.yAxisPrimaryMaximumFixedTextBox.Location = new System.Drawing.Point(191, 71); 715 771 this.yAxisPrimaryMaximumFixedTextBox.Name = "yAxisPrimaryMaximumFixedTextBox"; … … 738 794 // titleTextBox 739 795 // 740 this.titleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 741 796 this.titleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 797 | System.Windows.Forms.AnchorStyles.Right))); 742 798 this.titleTextBox.Location = new System.Drawing.Point(66, 0); 743 799 this.titleTextBox.Name = "titleTextBox"; … … 757 813 // axisFontLabel 758 814 // 759 this.axisFontLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 760 815 this.axisFontLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 816 | System.Windows.Forms.AnchorStyles.Right))); 761 817 this.axisFontLabel.AutoSize = true; 762 818 this.axisFontLabel.Location = new System.Drawing.Point(98, 60); … … 768 824 // titleFontLabel 769 825 // 770 this.titleFontLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 771 826 this.titleFontLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 827 | System.Windows.Forms.AnchorStyles.Right))); 772 828 this.titleFontLabel.AutoSize = true; 773 829 this.titleFontLabel.Location = new System.Drawing.Point(98, 31); … … 822 878 // titleFontDialog 823 879 // 880 this.titleFontDialog.Color = System.Drawing.SystemColors.ControlText; 824 881 this.titleFontDialog.FontMustExist = true; 825 882 this.titleFontDialog.ShowColor = true; 883 // 884 // axisFontDialog 885 // 886 this.axisFontDialog.Color = System.Drawing.SystemColors.ControlText; 826 887 // 827 888 // DataTableVisualPropertiesControl … … 838 899 this.Controls.Add(this.titleFontButton); 839 900 this.Name = "DataTableVisualPropertiesControl"; 840 this.Size = new System.Drawing.Size(455, 3 22);901 this.Size = new System.Drawing.Size(455, 373); 841 902 this.xAxisPrimaryGroupBox.ResumeLayout(false); 842 903 this.xAxisPrimaryGroupBox.PerformLayout(); … … 940 1001 private System.Windows.Forms.Panel panel7; 941 1002 private System.Windows.Forms.Panel panel8; 1003 private System.Windows.Forms.CheckBox xAxisPrimaryLogScaleCheckBox; 1004 private System.Windows.Forms.CheckBox xAxisSecondaryLogScaleCheckBox; 1005 private System.Windows.Forms.CheckBox yAxisSecondaryLogScaleCheckBox; 1006 private System.Windows.Forms.CheckBox yAxisPrimaryLogScaleCheckBox; 942 1007 } 943 1008 } -
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.cs
r8280 r9258 20 20 #endregion 21 21 22 using HeuristicLab.MainForm; 23 using HeuristicLab.MainForm.WindowsForms; 22 24 using System.Drawing; 23 25 using System.Windows.Forms; 24 using HeuristicLab.MainForm;25 using HeuristicLab.MainForm.WindowsForms;26 26 27 27 namespace HeuristicLab.Analysis.Views { … … 75 75 xAxisPrimaryMaximumFixedRadioButton.Checked = false; 76 76 xAxisPrimaryMaximumFixedTextBox.Text = string.Empty; 77 xAxisPrimaryLogScaleCheckBox.Checked = false; 77 78 xAxisSecondaryTitleTextBox.Text = string.Empty; 78 79 xAxisSecondaryMinimumAutoRadioButton.Checked = false; … … 82 83 xAxisSecondaryMaximumFixedRadioButton.Checked = false; 83 84 xAxisSecondaryMaximumFixedTextBox.Text = string.Empty; 85 xAxisSecondaryLogScaleCheckBox.Checked = false; 84 86 85 87 yAxisPrimaryTitleTextBox.Text = string.Empty; … … 90 92 yAxisPrimaryMaximumFixedRadioButton.Checked = false; 91 93 yAxisPrimaryMaximumFixedTextBox.Text = string.Empty; 94 yAxisPrimaryLogScaleCheckBox.Checked = false; 92 95 yAxisSecondaryTitleTextBox.Text = string.Empty; 93 96 yAxisSecondaryMinimumAutoRadioButton.Checked = false; … … 97 100 yAxisSecondaryMaximumFixedRadioButton.Checked = false; 98 101 yAxisSecondaryMaximumFixedTextBox.Text = string.Empty; 102 yAxisSecondaryLogScaleCheckBox.Checked = false; 99 103 } else { 100 104 titleFontLabel.Text = "( " + FormatFont(Content.TitleFont) + " )"; … … 109 113 xAxisPrimaryMaximumFixedRadioButton.Checked = !Content.XAxisMaximumAuto; 110 114 xAxisPrimaryMaximumFixedTextBox.Text = Content.XAxisMaximumFixedValue.ToString(); 115 xAxisPrimaryLogScaleCheckBox.Checked = Content.XAxisLogScale; 111 116 xAxisSecondaryTitleTextBox.Text = Content.SecondXAxisTitle; 112 117 xAxisSecondaryMinimumAutoRadioButton.Checked = Content.SecondXAxisMinimumAuto; … … 116 121 xAxisSecondaryMaximumFixedRadioButton.Checked = !Content.SecondXAxisMaximumAuto; 117 122 xAxisSecondaryMaximumFixedTextBox.Text = Content.SecondXAxisMaximumFixedValue.ToString(); 123 xAxisSecondaryLogScaleCheckBox.Checked = Content.SecondXAxisLogScale; 118 124 119 125 yAxisPrimaryTitleTextBox.Text = Content.YAxisTitle; … … 124 130 yAxisPrimaryMaximumFixedRadioButton.Checked = !Content.YAxisMaximumAuto; 125 131 yAxisPrimaryMaximumFixedTextBox.Text = Content.YAxisMaximumFixedValue.ToString(); 132 yAxisPrimaryLogScaleCheckBox.Checked = Content.YAxisLogScale; 126 133 yAxisSecondaryTitleTextBox.Text = Content.SecondYAxisTitle; 127 134 yAxisSecondaryMinimumAutoRadioButton.Checked = Content.SecondYAxisMinimumAuto; … … 131 138 yAxisSecondaryMaximumFixedRadioButton.Checked = !Content.SecondYAxisMaximumAuto; 132 139 yAxisSecondaryMaximumFixedTextBox.Text = Content.SecondYAxisMaximumFixedValue.ToString(); 133 }134 }135 finally { SuppressEvents = false; }140 yAxisSecondaryLogScaleCheckBox.Checked = Content.SecondYAxisLogScale; 141 } 142 } finally { SuppressEvents = false; } 136 143 SetEnabledStateOfControls(); 137 144 } … … 333 340 Content.XAxisMinimumAuto = xAxisPrimaryMinimumAutoRadioButton.Checked; 334 341 if (Content.XAxisMinimumAuto) xAxisPrimaryMinimumFixedTextBox.Text = double.NaN.ToString(); 335 } 336 finally { SuppressEvents = false; } 342 } finally { SuppressEvents = false; } 337 343 SetEnabledStateOfControls(); 338 344 } … … 345 351 Content.XAxisMaximumAuto = xAxisPrimaryMaximumAutoRadioButton.Checked; 346 352 if (Content.XAxisMaximumAuto) xAxisPrimaryMaximumFixedTextBox.Text = double.NaN.ToString(); 347 } 348 finally { SuppressEvents = false; } 353 } finally { SuppressEvents = false; } 349 354 SetEnabledStateOfControls(); 350 355 } … … 357 362 Content.SecondXAxisMinimumAuto = xAxisSecondaryMinimumAutoRadioButton.Checked; 358 363 if (Content.SecondXAxisMinimumAuto) xAxisSecondaryMinimumFixedTextBox.Text = double.NaN.ToString(); 359 } 360 finally { SuppressEvents = false; } 364 } finally { SuppressEvents = false; } 361 365 SetEnabledStateOfControls(); 362 366 } … … 369 373 Content.SecondXAxisMaximumAuto = xAxisSecondaryMaximumAutoRadioButton.Checked; 370 374 if (Content.SecondXAxisMaximumAuto) xAxisSecondaryMaximumFixedTextBox.Text = double.NaN.ToString(); 371 } 372 finally { SuppressEvents = false; } 375 } finally { SuppressEvents = false; } 373 376 SetEnabledStateOfControls(); 374 377 } … … 381 384 Content.YAxisMinimumAuto = yAxisPrimaryMinimumAutoRadioButton.Checked; 382 385 if (Content.YAxisMinimumAuto) yAxisPrimaryMinimumFixedTextBox.Text = double.NaN.ToString(); 383 } 384 finally { SuppressEvents = false; } 386 } finally { SuppressEvents = false; } 385 387 SetEnabledStateOfControls(); 386 388 } … … 393 395 Content.YAxisMaximumAuto = yAxisPrimaryMaximumAutoRadioButton.Checked; 394 396 if (Content.YAxisMaximumAuto) yAxisPrimaryMaximumFixedTextBox.Text = double.NaN.ToString(); 395 } 396 finally { SuppressEvents = false; } 397 } finally { SuppressEvents = false; } 397 398 SetEnabledStateOfControls(); 398 399 } … … 405 406 Content.SecondYAxisMinimumAuto = yAxisSecondaryMinimumAutoRadioButton.Checked; 406 407 if (Content.SecondYAxisMinimumAuto) yAxisSecondaryMinimumFixedTextBox.Text = double.NaN.ToString(); 407 } 408 finally { SuppressEvents = false; } 408 } finally { SuppressEvents = false; } 409 409 SetEnabledStateOfControls(); 410 410 } … … 417 417 Content.SecondYAxisMaximumAuto = yAxisSecondaryMaximumAutoRadioButton.Checked; 418 418 if (Content.SecondYAxisMaximumAuto) yAxisSecondaryMaximumFixedTextBox.Text = double.NaN.ToString(); 419 } 420 finally { SuppressEvents = false; } 421 SetEnabledStateOfControls(); 419 } finally { SuppressEvents = false; } 420 SetEnabledStateOfControls(); 421 } 422 } 423 424 private void xAxisPrimaryLogScaleCheckBox_CheckedChanged(object sender, System.EventArgs e) { 425 if (!SuppressEvents && Content != null) { 426 SuppressEvents = true; 427 try { 428 Content.XAxisLogScale = xAxisPrimaryLogScaleCheckBox.Checked; 429 } finally { SuppressEvents = false; } 430 } 431 } 432 433 private void xAxisSecondaryLogScaleCheckBox_CheckedChanged(object sender, System.EventArgs e) { 434 if (!SuppressEvents && Content != null) { 435 SuppressEvents = true; 436 try { 437 Content.SecondXAxisLogScale = xAxisSecondaryLogScaleCheckBox.Checked; 438 } finally { SuppressEvents = false; } 439 } 440 } 441 442 private void yAxisPrimaryLogScaleCheckBox_CheckedChanged(object sender, System.EventArgs e) { 443 if (!SuppressEvents && Content != null) { 444 SuppressEvents = true; 445 try { 446 Content.YAxisLogScale = yAxisPrimaryLogScaleCheckBox.Checked; 447 } finally { SuppressEvents = false; } 448 } 449 } 450 451 private void yAxisSecondaryLogScaleCheckBox_CheckedChanged(object sender, System.EventArgs e) { 452 if (!SuppressEvents && Content != null) { 453 SuppressEvents = true; 454 try { 455 Content.SecondYAxisLogScale = yAxisSecondaryLogScaleCheckBox.Checked; 456 } finally { SuppressEvents = false; } 422 457 } 423 458 } -
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesDialog.Designer.cs
r8015 r9258 69 69 this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 70 70 this.okButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 71 this.okButton.Location = new System.Drawing.Point(325, 4 00);71 this.okButton.Location = new System.Drawing.Point(325, 425); 72 72 this.okButton.Name = "okButton"; 73 73 this.okButton.Size = new System.Drawing.Size(75, 23); … … 81 81 this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 82 82 this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; 83 this.cancelButton.Location = new System.Drawing.Point(406, 4 00);83 this.cancelButton.Location = new System.Drawing.Point(406, 425); 84 84 this.cancelButton.Name = "cancelButton"; 85 85 this.cancelButton.Size = new System.Drawing.Size(75, 23); … … 91 91 // tabControl 92 92 // 93 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 94 | System.Windows.Forms.AnchorStyles.Left)95 93 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 94 | System.Windows.Forms.AnchorStyles.Left) 95 | System.Windows.Forms.AnchorStyles.Right))); 96 96 this.tabControl.Controls.Add(this.seriesTabPage); 97 97 this.tabControl.Controls.Add(this.chartTabPage); … … 99 99 this.tabControl.Name = "tabControl"; 100 100 this.tabControl.SelectedIndex = 0; 101 this.tabControl.Size = new System.Drawing.Size(469, 382);101 this.tabControl.Size = new System.Drawing.Size(469, 407); 102 102 this.tabControl.TabIndex = 2; 103 103 // … … 108 108 this.seriesTabPage.Name = "seriesTabPage"; 109 109 this.seriesTabPage.Padding = new System.Windows.Forms.Padding(3); 110 this.seriesTabPage.Size = new System.Drawing.Size(461, 3 56);110 this.seriesTabPage.Size = new System.Drawing.Size(461, 381); 111 111 this.seriesTabPage.TabIndex = 0; 112 112 this.seriesTabPage.Text = "Series"; … … 115 115 // splitContainer 116 116 // 117 this.splitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 118 | System.Windows.Forms.AnchorStyles.Left)119 117 this.splitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 118 | System.Windows.Forms.AnchorStyles.Left) 119 | System.Windows.Forms.AnchorStyles.Right))); 120 120 this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; 121 121 this.splitContainer.Location = new System.Drawing.Point(0, 0); … … 133 133 this.splitContainer.Panel2.Controls.Add(this.dataRowVisualPropertiesControl); 134 134 this.splitContainer.Panel2MinSize = 50; 135 this.splitContainer.Size = new System.Drawing.Size(461, 3 56);135 this.splitContainer.Size = new System.Drawing.Size(461, 381); 136 136 this.splitContainer.SplitterDistance = 125; 137 137 this.splitContainer.TabIndex = 0; … … 161 161 // seriesListView 162 162 // 163 this.seriesListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 164 | System.Windows.Forms.AnchorStyles.Left)165 163 this.seriesListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 164 | System.Windows.Forms.AnchorStyles.Left) 165 | System.Windows.Forms.AnchorStyles.Right))); 166 166 this.seriesListView.HideSelection = false; 167 167 this.seriesListView.Location = new System.Drawing.Point(3, 32); … … 169 169 this.seriesListView.Name = "seriesListView"; 170 170 this.seriesListView.ShowGroups = false; 171 this.seriesListView.Size = new System.Drawing.Size(119, 3 21);171 this.seriesListView.Size = new System.Drawing.Size(119, 346); 172 172 this.seriesListView.TabIndex = 2; 173 173 this.seriesListView.UseCompatibleStateImageBehavior = false; … … 177 177 // dataRowVisualPropertiesControl 178 178 // 179 this.dataRowVisualPropertiesControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 180 | System.Windows.Forms.AnchorStyles.Left)181 179 this.dataRowVisualPropertiesControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 180 | System.Windows.Forms.AnchorStyles.Left) 181 | System.Windows.Forms.AnchorStyles.Right))); 182 182 this.dataRowVisualPropertiesControl.Content = null; 183 183 this.dataRowVisualPropertiesControl.Location = new System.Drawing.Point(3, 26); 184 184 this.dataRowVisualPropertiesControl.Name = "dataRowVisualPropertiesControl"; 185 this.dataRowVisualPropertiesControl.Size = new System.Drawing.Size(326, 3 27);185 this.dataRowVisualPropertiesControl.Size = new System.Drawing.Size(326, 352); 186 186 this.dataRowVisualPropertiesControl.TabIndex = 0; 187 187 // … … 192 192 this.chartTabPage.Name = "chartTabPage"; 193 193 this.chartTabPage.Padding = new System.Windows.Forms.Padding(3); 194 this.chartTabPage.Size = new System.Drawing.Size(461, 3 56);194 this.chartTabPage.Size = new System.Drawing.Size(461, 381); 195 195 this.chartTabPage.TabIndex = 1; 196 196 this.chartTabPage.Text = "Chart"; … … 199 199 // dataTableVisualPropertiesControl 200 200 // 201 this.dataTableVisualPropertiesControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 202 | System.Windows.Forms.AnchorStyles.Left)203 201 this.dataTableVisualPropertiesControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 202 | System.Windows.Forms.AnchorStyles.Left) 203 | System.Windows.Forms.AnchorStyles.Right))); 204 204 this.dataTableVisualPropertiesControl.Content = null; 205 205 this.dataTableVisualPropertiesControl.Location = new System.Drawing.Point(3, 6); 206 206 this.dataTableVisualPropertiesControl.Name = "dataTableVisualPropertiesControl"; 207 this.dataTableVisualPropertiesControl.Size = new System.Drawing.Size(455, 3 47);207 this.dataTableVisualPropertiesControl.Size = new System.Drawing.Size(455, 372); 208 208 this.dataTableVisualPropertiesControl.TabIndex = 0; 209 209 // … … 213 213 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 214 214 this.CancelButton = this.cancelButton; 215 this.ClientSize = new System.Drawing.Size(493, 4 35);215 this.ClientSize = new System.Drawing.Size(493, 460); 216 216 this.Controls.Add(this.tabControl); 217 217 this.Controls.Add(this.cancelButton); -
trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataTableVisualProperties.cs
r7259 r9258 20 20 #endregion 21 21 22 using HeuristicLab.Common; 23 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 22 24 using System.ComponentModel; 23 25 using System.Drawing; 24 using HeuristicLab.Common;25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;26 26 27 27 namespace HeuristicLab.Analysis { … … 312 312 OnPropertyChanged("SecondYAxisMaximumFixedValue"); 313 313 } 314 } 315 } 316 317 private bool xAxisLogScale; 318 public bool XAxisLogScale { 319 get { return xAxisLogScale; } 320 set { 321 if (xAxisLogScale == value) return; 322 xAxisLogScale = value; 323 OnPropertyChanged("XAxisLogScale"); 324 } 325 } 326 327 private bool secondXAxisLogScale; 328 public bool SecondXAxisLogScale { 329 get { return secondXAxisLogScale; } 330 set { 331 if (secondXAxisLogScale == value) return; 332 secondXAxisLogScale = value; 333 OnPropertyChanged("SecondXAxisLogScale"); 334 } 335 } 336 337 private bool yAxisLogScale; 338 public bool YAxisLogScale { 339 get { return yAxisLogScale; } 340 set { 341 if (yAxisLogScale == value) return; 342 yAxisLogScale = value; 343 OnPropertyChanged("YAxisLogScale"); 344 } 345 } 346 347 private bool secondYAxisLogScale; 348 public bool SecondYAxisLogScale { 349 get { return secondYAxisLogScale; } 350 set { 351 if (secondYAxisLogScale == value) return; 352 secondYAxisLogScale = value; 353 OnPropertyChanged("SecondYAxisLogScale"); 314 354 } 315 355 } … … 472 512 this.secondYAxisMaximumAuto = original.secondYAxisMaximumAuto; 473 513 this.secondYAxisMaximumFixedValue = original.secondYAxisMaximumFixedValue; 514 this.xAxisLogScale = original.xAxisLogScale; 515 this.secondXAxisLogScale = original.secondXAxisLogScale; 516 this.yAxisLogScale = original.yAxisLogScale; 517 this.secondYAxisLogScale = original.secondYAxisLogScale; 474 518 } 475 519 public DataTableVisualProperties() { … … 497 541 this.secondYAxisMaximumAuto = true; 498 542 this.secondYAxisMaximumFixedValue = double.NaN; 543 this.xAxisLogScale = false; 544 this.secondXAxisLogScale = false; 545 this.yAxisLogScale = false; 546 this.secondYAxisLogScale = false; 499 547 } 500 548 public DataTableVisualProperties(string title) … … 509 557 public event PropertyChangedEventHandler PropertyChanged; 510 558 protected virtual void OnPropertyChanged(string propertyName) { 511 PropertyChangedEventHandler handler = PropertyChanged;559 var handler = PropertyChanged; 512 560 if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName)); 513 561 } … … 547 595 this.secondYAxisMaximumAuto = true; 548 596 this.secondYAxisMaximumFixedValue = double.NaN; 597 } 549 598 #endregion 550 }551 599 } 552 600 } -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj
r8806 r9258 108 108 </ItemGroup> 109 109 <ItemGroup> 110 <Compile Include="Creators\NormalDistributedRealVectorCreator.cs" /> 110 111 <Compile Include="Interfaces\IRealVectorMultiNeighborhoodShakingOperator.cs" /> 111 112 <Compile Include="ParticleOperators\RealVectorParticleCreator.cs" /> -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r8720 r9258 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Linq;25 22 using HeuristicLab.Analysis; 26 23 using HeuristicLab.Common; … … 32 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 33 30 using HeuristicLab.PluginInfrastructure; 31 using System; 32 using System.Collections.Generic; 33 using System.Linq; 34 34 35 35 namespace HeuristicLab.Problems.TestFunctions { … … 125 125 public override IDeepCloneable Clone(Cloner cloner) { 126 126 return new SingleObjectiveTestFunctionProblem(this, cloner); 127 }128 129 private bool IsNotFieldReferenced(IOperator x) {130 return !(x == strategyVectorCreator131 || x == strategyVectorCrossover132 || x == strategyVectorManipulator);133 127 } 134 128 … … 337 331 } 338 332 private void ParameterizeOperators() { 339 foreach ( IRealVectorCrossover op in Operators.OfType<IRealVectorCrossover>()) {333 foreach (var op in Operators.OfType<IRealVectorCrossover>()) { 340 334 op.ParentsParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 341 335 op.ParentsParameter.Hidden = true; … … 345 339 op.BoundsParameter.Hidden = true; 346 340 } 347 foreach ( IRealVectorManipulator op in Operators.OfType<IRealVectorManipulator>()) {341 foreach (var op in Operators.OfType<IRealVectorManipulator>()) { 348 342 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 349 343 op.RealVectorParameter.Hidden = true; … … 351 345 op.BoundsParameter.Hidden = true; 352 346 } 353 foreach ( IRealVectorMoveOperator op in Operators.OfType<IRealVectorMoveOperator>()) {354 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 355 op.RealVectorParameter.Hidden = true; 356 } 357 foreach ( IRealVectorMoveGenerator op in Operators.OfType<IRealVectorMoveGenerator>()) {347 foreach (var op in Operators.OfType<IRealVectorMoveOperator>()) { 348 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 349 op.RealVectorParameter.Hidden = true; 350 } 351 foreach (var op in Operators.OfType<IRealVectorMoveGenerator>()) { 358 352 op.BoundsParameter.ActualName = BoundsParameter.Name; 359 353 op.BoundsParameter.Hidden = true; 360 354 } 361 foreach ( ISingleObjectiveTestFunctionAdditiveMoveEvaluator op in Operators.OfType<ISingleObjectiveTestFunctionAdditiveMoveEvaluator>()) {355 foreach (var op in Operators.OfType<ISingleObjectiveTestFunctionAdditiveMoveEvaluator>()) { 362 356 op.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 363 357 op.QualityParameter.Hidden = true; … … 365 359 op.RealVectorParameter.Hidden = true; 366 360 } 367 foreach ( IRealVectorParticleCreator op in Operators.OfType<IRealVectorParticleCreator>()) {361 foreach (var op in Operators.OfType<IRealVectorParticleCreator>()) { 368 362 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 369 363 op.RealVectorParameter.Hidden = true; … … 373 367 op.ProblemSizeParameter.Hidden = true; 374 368 } 375 foreach ( IRealVectorParticleUpdater op in Operators.OfType<IRealVectorParticleUpdater>()) {369 foreach (var op in Operators.OfType<IRealVectorParticleUpdater>()) { 376 370 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 377 371 op.RealVectorParameter.Hidden = true; … … 379 373 op.BoundsParameter.Hidden = true; 380 374 } 381 foreach ( IRealVectorSwarmUpdater op in Operators.OfType<IRealVectorSwarmUpdater>()) {375 foreach (var op in Operators.OfType<IRealVectorSwarmUpdater>()) { 382 376 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 383 377 op.RealVectorParameter.Hidden = true; … … 385 379 op.MaximizationParameter.Hidden = true; 386 380 } 387 foreach ( IRealVectorMultiNeighborhoodShakingOperator op in Operators.OfType<IRealVectorMultiNeighborhoodShakingOperator>()) {388 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 389 op.RealVectorParameter.Hidden = true; 390 } 391 foreach ( ISingleObjectiveImprovementOperator op in Operators.OfType<ISingleObjectiveImprovementOperator>()) {381 foreach (var op in Operators.OfType<IRealVectorMultiNeighborhoodShakingOperator>()) { 382 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 383 op.RealVectorParameter.Hidden = true; 384 } 385 foreach (var op in Operators.OfType<ISingleObjectiveImprovementOperator>()) { 392 386 op.SolutionParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 393 387 op.SolutionParameter.Hidden = true; 394 388 } 395 foreach ( ISingleObjectivePathRelinker op in Operators.OfType<ISingleObjectivePathRelinker>()) {389 foreach (var op in Operators.OfType<ISingleObjectivePathRelinker>()) { 396 390 op.ParentsParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 397 391 op.ParentsParameter.Hidden = true; 398 392 } 399 foreach ( SingleObjectiveTestFunctionSimilarityCalculator op in Operators.OfType<SingleObjectiveTestFunctionSimilarityCalculator>()) {393 foreach (var op in Operators.OfType<SingleObjectiveTestFunctionSimilarityCalculator>()) { 400 394 op.SolutionVariableName = SolutionCreator.RealVectorParameter.ActualName; 401 395 op.QualityVariableName = Evaluator.QualityParameter.ActualName; … … 404 398 } 405 399 private void UpdateStrategyVectorBounds() { 406 DoubleMatrixstrategyBounds = (DoubleMatrix)Bounds.Clone();400 var strategyBounds = (DoubleMatrix)Bounds.Clone(); 407 401 for (int i = 0; i < strategyBounds.Rows; i++) { 408 402 if (strategyBounds[i, 0] < 0) strategyBounds[i, 0] = 0;
Note: See TracChangeset
for help on using the changeset viewer.