Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Collections.Specialized;
|
---|
6 |
|
---|
7 |
|
---|
8 | namespace 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;
|
---|
30 | }
|
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.