Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6094


Ignore:
Timestamp:
05/02/11 14:10:37 (13 years ago)
Author:
mkommend
Message:

#1413: Correct bugs in bubble chart (index starts with -1, double click on points that lie on axis, changing the axis value by a key stroke).

File:
1 edited

Legend:

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

    r6026 r6094  
    433433    #region Drag & drop and tooltip
    434434    private void chart_MouseDoubleClick(object sender, MouseEventArgs e) {
    435       HitTestResult h = this.chart.HitTest(e.X, e.Y);
     435      HitTestResult h = this.chart.HitTest(e.X, e.Y, ChartElementType.DataPoint);
    436436      if (h.ChartElementType == ChartElementType.DataPoint) {
    437437        IRun run = (IRun)((DataPoint)h.Object).Tag;
     
    557557      colorXAxisButton.Enabled = colorYAxisButton.Enabled = axisSelected;
    558558
    559       if (!xAxisComboBox.DroppedDown)
    560         xAxisValue = (string)xAxisComboBox.SelectedItem;
    561       if (!yAxisComboBox.DroppedDown)
    562         yAxisValue = (string)yAxisComboBox.SelectedItem;
    563       if (!sizeComboBox.DroppedDown)
    564         sizeAxisValue = (string)sizeComboBox.SelectedItem;
     559      xAxisValue = (string)xAxisComboBox.SelectedItem;
     560      yAxisValue = (string)yAxisComboBox.SelectedItem;
     561      sizeAxisValue = (string)sizeComboBox.SelectedItem;
     562
     563      chart.ChartAreas[0].AxisX.IsMarginVisible = xAxisValue != AxisDimension.Index.ToString() ;
     564      chart.ChartAreas[0].AxisY.IsMarginVisible = yAxisValue != AxisDimension.Index.ToString();
    565565
    566566      UpdateDataPoints();
Note: See TracChangeset for help on using the changeset viewer.