Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/17/08 20:27:55 (16 years ago)
Author:
cbahner
Message:

#320
basic implementation of dataRows

Location:
trunk/sources/HeuristicLab.Visualization
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/ChartDataModelBase.cs

    r680 r685  
    33using System.Linq;
    44using System.Text;
     5using HeuristicLab.Core;
    56
    67namespace HeuristicLab.Visualization {
    7   class ChartDataModelBase {
     8  public abstract class ChartDataModelBase : ItemBase, IChartDataModel{
    89  }
    910}
  • trunk/sources/HeuristicLab.Visualization/ChartDataRowsModel.cs

    r680 r685  
    33using System.Linq;
    44using System.Text;
     5using System.Collections.Specialized;
    56
    6 namespace HeuristicLab.Visualization {
    7   class ChartDataRowsModel {
     7
     8namespace HeuristicLab.Visualization{
     9  public class ChartDataRowsModel : ChartDataModelBase, IChartDataRowsModel{
     10
     11    private readonly ListDictionary dataRows;
     12   
     13    public ChartDataRowsModel(){
     14
     15      dataRows = new ListDictionary();
     16    }
     17
     18    public void AddDataRow(int id){
     19      List<double> row = new List<double>();
     20
     21      dataRows.Add(id, row);
     22    }
     23
     24    public void PushData(int dataRowId, double value){
     25        ((List<double>)dataRows[dataRowId]).Add(value);
     26
     27    }
     28
     29    public event ChartDataRowsModelDataChangedHandler DataChanged;
    830  }
    931}
  • trunk/sources/HeuristicLab.Visualization/ChartDataRowsModelDummy.cs

    r680 r685  
    55
    66namespace HeuristicLab.Visualization {
    7   class ChartDataRowsModelDummy {
     7  class ChartDataRowsModelDummy : ChartDataRowsModel {
     8
     9   
    810  }
    911}
  • trunk/sources/HeuristicLab.Visualization/HeuristicLab.Visualization.csproj

    r684 r685  
    8989  </ItemGroup>
    9090  <ItemGroup>
     91    <ProjectReference Include="..\HeuristicLab.Core\HeuristicLab.Core.csproj">
     92      <Project>{F43B59AB-2B8C-4570-BC1E-15592086517C}</Project>
     93      <Name>HeuristicLab.Core</Name>
     94    </ProjectReference>
    9195    <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj">
    9296      <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
  • trunk/sources/HeuristicLab.Visualization/IChartDataModel.cs

    r680 r685  
    33using System.Linq;
    44using System.Text;
     5using HeuristicLab.Core;
    56
    67namespace HeuristicLab.Visualization {
    7   interface IChartDataModel {
     8  interface IChartDataModel : IItem {
    89  }
    910}
Note: See TracChangeset for help on using the changeset viewer.