Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/11/14 14:23:19 (10 years ago)
Author:
aesterer
Message:

Refactored scatter plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingChartView.cs

    r10972 r10987  
    4949    private const string DEFAULT_CHART_TITLE = "Chart";
    5050    private const int FIXED_CHART_SIZE = 300;
    51     private const int MAX_TABLE_ROWS = 3;
     51    private const int MAX_TABLE_AUTO_SIZE_ROWS = 3;
    5252
    5353    public IEnumerable<double> Classification { get; set; }
     
    328328      int columns = GetNrOfMultiChartColumns(checkedItemsCnt);
    329329      int rows = GetNrOfMultiChartRows(checkedItemsCnt, columns);
     330      tableLayoutPanel.VerticalScroll.Enabled = true;
    330331     
    331332      tableLayoutPanel.ColumnCount = columns;
     
    335336      for (int x = 0; x < columns; x++) {
    336337
    337         if (rows <= MAX_TABLE_ROWS)
     338        if (rows <= MAX_TABLE_AUTO_SIZE_ROWS)
    338339          tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100 / columns));
    339340        else
     
    344345          if (x == 0) {
    345346            // fixed chart size when there are more than 3 tables
    346             if (rows > MAX_TABLE_ROWS)
     347            if (rows > MAX_TABLE_AUTO_SIZE_ROWS)
    347348              tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, FIXED_CHART_SIZE));
    348349            else
Note: See TracChangeset for help on using the changeset viewer.