Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/12/18 18:12:58 (6 years ago)
Author:
mkommend
Message:

#2876: Added menu item to open the bubble chart from the boxplot view.

File:
1 edited

Legend:

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

    r15583 r15607  
    4848    public RunCollectionBoxPlotView() {
    4949      InitializeComponent();
     50      chart.ContextMenuStrip.Items.Insert(0, openBubbleChartViewToolStripMenuItem);
     51
    5052      categoricalMapping = new Dictionary<int, Dictionary<object, double>>();
    5153      seriesCache = new SortedDictionary<double, Series>();
     
    224226            AxisDimension axisDimension = (AxisDimension)Enum.Parse(typeof(AxisDimension), selectedAxis);
    225227            switch (axisDimension) {
    226               case AxisDimension.Color: value = new StringValue(run.Color.ToString());
     228              case AxisDimension.Color:
     229                value = new StringValue(run.Color.ToString());
    227230                break;
    228231            }
     
    445448    }
    446449
     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
    447458    private void chart_MouseMove(object sender, MouseEventArgs e) {
    448459      string newTooltipText = string.Empty;
     
    463474    }
    464475
    465   public bool StatisticsVisible {
    466     get { return splitContainer.Panel2Collapsed; }
    467     set { splitContainer.Panel2Collapsed = value; }
    468   }
    469  
     476    public bool StatisticsVisible {
     477      get { return splitContainer.Panel2Collapsed; }
     478      set { splitContainer.Panel2Collapsed = value; }
     479    }
     480
    470481    public void SetXAxis(string axisName) {
    471482      xAxisComboBox.SelectedItem = axisName;
Note: See TracChangeset for help on using the changeset viewer.