Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10733


Ignore:
Timestamp:
04/09/14 10:24:17 (9 years ago)
Author:
aesterer
Message:

Modified chart logic

Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/ChartLogic.cs

    r10658 r10733  
    3434    public ChartLogic(ITransactionalPreprocessingData preprocessingData) {
    3535      this.preprocessingData = preprocessingData;
    36     }
    37 
    38     public DataTable CreateDataTable(String title, DataRowVisualProperties.DataRowChartType chartType) {
    39       DataTable dataTable = new DataTable(title);
    40       IEnumerable<string> variableNames = GetVariableNames();
    41 
    42       foreach (string variableName in variableNames) {
    43         DataRow row = CreateDataRow(variableName,chartType);
    44         dataTable.Rows.Add(row);
    45       }
    46       return dataTable;
    4736    }
    4837
     
    8372    }
    8473
     74
     75    public List<DataRow> CreateAllDataRows(DataRowVisualProperties.DataRowChartType chartType) {
     76      List<DataRow> dataRows = new List<DataRow>();
     77      foreach (var name in GetVariableNames())
     78        dataRows.Add(CreateDataRow(name, chartType));
     79      return dataRows;
     80    }
     81
    8582  }
    8683}
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IChartLogic.cs

    r10658 r10733  
    2828  public interface IChartLogic {
    2929
    30     DataTable CreateDataTable(string title, DataRowVisualProperties.DataRowChartType chartType);
     30    List<DataRow> CreateAllDataRows( DataRowVisualProperties.DataRowChartType chartType);
    3131
    3232    event DataPreprocessingChangedEventHandler Changed;
Note: See TracChangeset for help on using the changeset viewer.