Free cookie consent management tool by TermsFeed Policy Generator

source: branches/CEDMA-Refactoring-Ticket419/HeuristicLab.Visualization/ChartDataRowsModelDummy.cs @ 1070

Last change on this file since 1070 was 864, checked in by cbahner, 16 years ago

#318 implemented interfaces + new datarowdummy model

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