Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 1842 was 1530, checked in by gkronber, 16 years ago

Moved source files of plugins Hive ... Visualization.Test into version-specific sub-folders. #576

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.