Rev | Line | |
---|
[680] | 1 | using System;
|
---|
[864] | 2 | using System.Drawing;
|
---|
[680] | 3 |
|
---|
[754] | 4 | namespace 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.