Changeset 14983 for branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotMultiView.cs
- Timestamp:
- 05/15/17 16:30:45 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotMultiView.cs
r14975 r14983 416 416 foreach (var dataRow in dataTable.Rows) 417 417 dataRow.VisualProperties.IsVisibleInLegend = groupingComboBox.SelectedIndex > 0; 418 var pcv = new DataTable Control{418 var pcv = new DataTableView { 419 419 Name = key.ToString(), 420 420 Content = dataTable, 421 421 Dock = DockStyle.Fill, 422 ShowName = false 422 423 //ShowLegend = false, 423 424 //XAxisFormat = "G3" … … 444 445 } 445 446 scatterPlot.VisualProperties.Title = string.Empty; 446 var scatterPlot Control = new ScatterPlotControl{447 var scatterPlotView = new ScatterPlotView { 447 448 Name = key.ToString(), 448 449 Content = scatterPlot, 449 450 Dock = DockStyle.Fill, 451 ShowName = false 450 452 //ShowLegend = false, 451 453 //XAxisFormat = "G3" 452 454 }; 453 //scatterPlot Control.DoubleClick += ScatterPlotDoubleClick; // ToDo: not working; double click is already handled by the chart454 bodyCache.Add(key, scatterPlot Control);455 //scatterPlotView.DoubleClick += ScatterPlotDoubleClick; // ToDo: not working; double click is already handled by the chart 456 bodyCache.Add(key, scatterPlotView); 455 457 } 456 458 } … … 536 538 //Open scatter plot in new tab with new content when double clicked 537 539 private void ScatterPlotDoubleClick(object sender, EventArgs e) { 538 var scatterPlot Control = (ScatterPlotControl)sender;540 var scatterPlotView = (ScatterPlotView)sender; 539 541 var scatterContent = new SingleScatterPlotContent(Content.PreprocessingData); 540 ScatterPlot scatterPlot = scatterPlot Control.Content;542 ScatterPlot scatterPlot = scatterPlotView.Content; 541 543 542 544 //Extract variable names from scatter plot and set them in content … … 552 554 //open histogram in new tab with new content when double clicked 553 555 private void HistogramDoubleClick(object sender, EventArgs e) { 554 DataTable Control pcv = (DataTableControl)sender;556 DataTableView pcv = (DataTableView)sender; 555 557 HistogramContent histoContent = new HistogramContent(Content.PreprocessingData); // create new content 556 558 //ToDo: histoContent.VariableItemList = Content.CreateVariableItemList(); … … 655 657 int pointSize = (int)pointSizeNumericUpDown.Value; 656 658 foreach (var control in bodyCache.ToList()) { 657 var scatterPlot Control = control.Value as ScatterPlotControl;658 if (scatterPlot Control!= null) {659 foreach (var row in scatterPlot Control.Content.Rows) {659 var scatterPlotView = control.Value as ScatterPlotView; 660 if (scatterPlotView != null) { 661 foreach (var row in scatterPlotView.Content.Rows) { 660 662 row.VisualProperties.PointSize = pointSize; 661 663 } … … 666 668 float opacity = (float)pointOpacityNumericUpDown.Value; 667 669 foreach (var control in bodyCache.ToList()) { 668 var scatterPlot Control = control.Value as ScatterPlotControl;669 if (scatterPlot Control!= null) {670 foreach (var row in scatterPlot Control.Content.Rows) {670 var scatterPlotView = control.Value as ScatterPlotView; 671 if (scatterPlotView != null) { 672 foreach (var row in scatterPlotView.Content.Rows) { 671 673 var color = row.VisualProperties.Color; 672 674 if (color.IsEmpty) … … 700 702 } 701 703 702 var scatterPlot Control = control.Value as ScatterPlotControl;703 if (scatterPlot Control!= null) {704 foreach (var row in scatterPlot Control.Content.Rows) {704 var scatterPlotView = control.Value as ScatterPlotView; 705 if (scatterPlotView != null) { 706 foreach (var row in scatterPlotView.Content.Rows) { 705 707 row.VisualProperties.IsRegressionVisibleInLegend = false; 706 708 row.VisualProperties.RegressionType = regressionType; … … 726 728 } 727 729 728 var histogramControl = control.Value as DataTable Control;730 var histogramControl = control.Value as DataTableView; 729 731 if (histogramControl != null) { 730 732 foreach (var row in histogramControl.Content.Rows) {
Note: See TracChangeset
for help on using the changeset viewer.