Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/15 14:09:16 (9 years ago)
Author:
pfleck
Message:

#2379 Added size track-bar similar to the original bubble-chart.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BubbleChart/HeuristicLab.Optimization.BubbleChart/3.3/BubbleChartView.cs

    r12598 r12600  
    379379
    380380          //invert bubble sizes if the value of the trackbar is negative
    381           //if (sizeTrackBar.Value < 0) relativeSize = Math.Abs(relativeSize - 1);
     381          if (sizeTrackBar.Value < 0) relativeSize = Math.Abs(relativeSize - 1);
    382382        } else relativeSize = 1;
    383383
    384         double sizeChange = /*Math.Abs(sizeTrackBar.Value)*/ 10 * relativeSize;
    385         //double sizeChange = 0;
     384        double sizeChange = Math.Abs(sizeTrackBar.Value) * relativeSize;
    386385        point.MarkerSize = (int)Math.Round(sizeChange + smallestBubbleSize);
    387386      }
     
    426425      updating = false;
    427426    }
     427
     428    private void sizeTrackBar_ValueChanged(object sender, EventArgs e) {
     429      UpdateMarkerSizes();
     430    }
    428431    #endregion
    429432
Note: See TracChangeset for help on using the changeset viewer.