Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Visualization/3.2/ChartDataRowsModelDummy.cs @ 2157

Last change on this file since 2157 was 1986, checked in by mstoeger, 15 years ago

added IChartDataRowsModel.AddDataRows method #498

File size: 1.1 KB
Line 
1using System;
2using System.Drawing;
3
4namespace HeuristicLab.Visualization{
5  public class ChartDataRowsModelDummy : ChartDataRowsModel  {
6   
7    public ChartDataRowsModelDummy(){
8      Random rand = new Random();
9
10      // test rows
11
12      // TODO change to call new DataRow("Datarow 1");
13      DataRow row1 = new DataRow();
14      row1.RowSettings.Label = "Datarow 1";
15      row1.RowSettings.Color = Color.Red;
16      DataRow row2 = new DataRow();
17      row2.RowSettings.Label = "Datarow 2";
18      row2.RowSettings.Color = Color.Blue;
19      DataRow row3 = new DataRow();
20      row3.RowSettings.Label = "Datarow 3";
21      row3.RowSettings.Color = Color.DeepPink;
22
23      AddDataRow(row1);
24      AddDataRow(row2);
25      AddDataRow(row3);
26     
27      for (int i = 0; i < 10; i++){
28
29        // TODO Test AddDataRow mit bereits befüllter Row
30
31        row1.AddValue(rand.NextDouble() * 100);
32        row2.AddValues(new double[] { rand.NextDouble() * 100, 
33          rand.NextDouble() * 100 });
34        row3.AddValue(11.0);
35        // TODO after implemention of modifyValue: row1.ModifyValue(row1.getval[i]+100, i);
36      }
37    }
38  }
39}
Note: See TracBrowser for help on using the repository browser.