Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/14 10:44:11 (11 years ago)
Author:
aesterer
Message:

Added coloring selection feature to line chart

File:
1 edited

Legend:

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

    r10771 r10803  
    3030using HeuristicLab.Core.Views;
    3131using HeuristicLab.Data;
     32using HeuristicLab.DataPreprocessing.Implementations;
    3233using HeuristicLab.MainForm;
    3334
     
    3940
    4041    private IChartLogic logic;
    41     private DataTable dataTable;
    42     private List<DataTable> dataTablePerVariable;
     42    private PreprocessingDataTable dataTable;
     43    private List<PreprocessingDataTable> dataTablePerVariable;
    4344    private ICheckedItemList<StringValue> variableItemList;
    4445    private List<DataRow> dataRows;
     
    6768          DataRow row = GetDataRow(variableName);
    6869          dataTable.Rows.Add(row);
    69           DataTable d = new DataTable(variableName);
     70          PreprocessingDataTable d = new PreprocessingDataTable(variableName);
    7071          d.Rows.Add(row);
    7172          dataTablePerVariable.Add(d);
     
    109110
    110111      // init data table
    111       dataTable = new DataTable(chartTitle);
     112      dataTable = new PreprocessingDataTable(chartTitle);
    112113      dataTable.Rows.AddRange(dataRows);
     114     
    113115
    114116      // init data table per variable
    115       dataTablePerVariable = new List<DataTable>();
     117      dataTablePerVariable = new List<PreprocessingDataTable>();
    116118      foreach(var checkedItem in variableItemList.CheckedItems)  {
    117119        string variableName = variableItemList[checkedItem.Index].Value;
    118         DataTable d = new DataTable(variableName);
     120        PreprocessingDataTable d = new PreprocessingDataTable(variableName);
    119121        DataRow row = GetDataRow(variableName);
     122        //DataRow rowSelect = logic.CreateDataRowRange(variableName, 200, 400, chartType);
     123        //rowSelect.Name = variableName + "(Selected)";
     124        //rowSelect.VisualProperties.Color = Color.Green;
     125       
    120126        d.Rows.Add(row);
     127        //d.SelectedRows.Add(rowSelect);
     128       
    121129        dataTablePerVariable.Add(d);
    122       }
    123 
     130
     131      }
    124132    }
    125133
     
    179187      DataRow row = logic.CreateDataRow(name, chartType);
    180188      dataTable.Rows.Add(row);
    181       DataTable d = new DataTable(name);
     189      PreprocessingDataTable d = new PreprocessingDataTable(name);
    182190      d.Rows.Add(row);
    183191      dataTablePerVariable.Add(d);
     
    264272      tableLayoutPanel.RowCount = rows;
    265273
    266       List<DataTable>.Enumerator enumerator = dataTablePerVariable.GetEnumerator();
     274      List<PreprocessingDataTable>.Enumerator enumerator = dataTablePerVariable.GetEnumerator();
    267275      for (int x = 0; x < columns; x++) {
    268276       
     
    284292          PreprocessingDataTableView dataView = new PreprocessingDataTableView();
    285293          enumerator.MoveNext();
    286           DataTable d = enumerator.Current;
     294          PreprocessingDataTable d = enumerator.Current;
    287295          if (d == null) {
    288296            // dummy panel for empty field
Note: See TracChangeset for help on using the changeset viewer.