Free cookie consent management tool by TermsFeed Policy Generator

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

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

added IChartDataRowsModel.AddDataRows method #498

File size: 1.1 KB
RevLine 
[680]1using System;
[864]2using System.Drawing;
[680]3
[754]4namespace HeuristicLab.Visualization{
5  public class ChartDataRowsModelDummy : ChartDataRowsModel  {
[864]6   
[754]7    public ChartDataRowsModelDummy(){
8      Random rand = new Random();
[685]9
[864]10      // test rows
[761]11
[864]12      // TODO change to call new DataRow("Datarow 1");
13      DataRow row1 = new DataRow();
[1962]14      row1.RowSettings.Label = "Datarow 1";
15      row1.RowSettings.Color = Color.Red;
[864]16      DataRow row2 = new DataRow();
[1962]17      row2.RowSettings.Label = "Datarow 2";
18      row2.RowSettings.Color = Color.Blue;
[864]19      DataRow row3 = new DataRow();
[1962]20      row3.RowSettings.Label = "Datarow 3";
21      row3.RowSettings.Color = Color.DeepPink;
[864]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      }
[754]37    }
[680]38  }
[754]39}
Note: See TracBrowser for help on using the repository browser.