Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4653


Ignore:
Timestamp:
10/28/10 17:59:06 (14 years ago)
Author:
mkommend
Message:

Added possibility to open a RunCollectionBoxPlotView from the RunCollectionBubbleChartView context menu (ticket #1135).

Location:
trunk/sources/HeuristicLab.Optimization.Views/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBoxPlotView.Designer.cs

    r4652 r4653  
    209209
    210210    private System.Windows.Forms.Label xAxisLabel;
    211     private System.Windows.Forms.ComboBox xAxisComboBox;
     211    internal System.Windows.Forms.ComboBox xAxisComboBox;
    212212    private System.Windows.Forms.Label yAxisLabel;
    213     private System.Windows.Forms.ComboBox yAxisComboBox;
     213    internal System.Windows.Forms.ComboBox yAxisComboBox;
    214214    private HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart;
    215215    private System.Windows.Forms.Label noRunsLabel;
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.Designer.cs

    r4635 r4653  
    4646    private void InitializeComponent() {
    4747      this.components = new System.ComponentModel.Container();
    48       System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
    49       System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
     48      System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     49      System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series();
    5050      this.yJitterLabel = new System.Windows.Forms.Label();
    5151      this.xJitterlabel = new System.Windows.Forms.Label();
     
    6666      this.tooltip = new System.Windows.Forms.ToolTip(this.components);
    6767      this.noRunsLabel = new System.Windows.Forms.Label();
     68      this.openBoxPlotViewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    6869      ((System.ComponentModel.ISupportInitialize)(this.xTrackBar)).BeginInit();
    6970      ((System.ComponentModel.ISupportInitialize)(this.yTrackBar)).BeginInit();
     
    181182                  | System.Windows.Forms.AnchorStyles.Left)
    182183                  | System.Windows.Forms.AnchorStyles.Right)));
    183       chartArea1.Name = "ChartArea1";
    184       this.chart.ChartAreas.Add(chartArea1);
     184      chartArea2.Name = "ChartArea1";
     185      this.chart.ChartAreas.Add(chartArea2);
    185186      this.chart.Location = new System.Drawing.Point(6, 30);
    186187      this.chart.Name = "chart";
    187       series1.ChartArea = "ChartArea1";
    188       series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bubble;
    189       series1.CustomProperties = "BubbleMinSize=2, BubbleMaxSize=7";
    190       series1.IsVisibleInLegend = false;
    191       series1.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
    192       series1.Name = "Bubbles";
    193       series1.YValuesPerPoint = 2;
    194       this.chart.Series.Add(series1);
     188      series2.ChartArea = "ChartArea1";
     189      series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bubble;
     190      series2.CustomProperties = "BubbleMinSize=2, BubbleMaxSize=7";
     191      series2.IsVisibleInLegend = false;
     192      series2.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
     193      series2.Name = "Bubbles";
     194      series2.YValuesPerPoint = 2;
     195      this.chart.Series.Add(series2);
    195196      this.chart.Size = new System.Drawing.Size(633, 248);
    196197      this.chart.TabIndex = 16;
     
    265266      this.noRunsLabel.TabIndex = 21;
    266267      this.noRunsLabel.Text = "No runs could be displayed.";
     268      //
     269      // openBoxPlotViewToolStripMenuItem
     270      //
     271      this.chart.ContextMenuStrip.Items.Add(openBoxPlotViewToolStripMenuItem);
     272      this.openBoxPlotViewToolStripMenuItem.Name = "openBoxPlotViewToolStripMenuItem";
     273      this.openBoxPlotViewToolStripMenuItem.Size = new System.Drawing.Size(256, 22);
     274      this.openBoxPlotViewToolStripMenuItem.Text = "Open BoxPlot View";
     275      this.openBoxPlotViewToolStripMenuItem.Click += new System.EventHandler(this.openBoxPlotViewToolStripMenuItem_Click);
    267276      //
    268277      // RunCollectionBubbleChartView
     
    317326    private System.Windows.Forms.ToolTip tooltip;
    318327    private System.Windows.Forms.Label noRunsLabel;
     328    private System.Windows.Forms.ToolStripMenuItem openBoxPlotViewToolStripMenuItem;
    319329  }
    320330}
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs

    r4652 r4653  
    560560      return colorImage;
    561561    }
     562
     563    private void openBoxPlotViewToolStripMenuItem_Click(object sender, EventArgs e) {
     564      RunCollectionBoxPlotView boxplotView = new RunCollectionBoxPlotView();
     565      boxplotView.Content = this.Content;
     566      boxplotView.xAxisComboBox.SelectedItem = xAxisComboBox.SelectedItem;
     567      boxplotView.yAxisComboBox.SelectedItem = yAxisComboBox.SelectedItem;
     568      boxplotView.Show();
     569    }
    562570    #endregion
    563571  }
Note: See TracChangeset for help on using the changeset viewer.