Changeset 1972
- Timestamp:
- 05/30/09 12:19:16 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization.Test/3.2/LineChartTests.cs
r1962 r1972 34 34 row3.RowSettings.Label = "Maxi"; 35 35 36 row1. Style = DrawingStyle.Solid;37 row2. Style = DrawingStyle.Solid;38 row3. Style = DrawingStyle.Dashed;36 row1.RowSettings.Style = DrawingStyle.Solid; 37 row2.RowSettings.Style = DrawingStyle.Solid; 38 row3.RowSettings.Style = DrawingStyle.Dashed; 39 39 40 40 … … 100 100 row1.RowSettings.Color = Color.Red; 101 101 row1.RowSettings.Thickness = 3; 102 row1. Style = DrawingStyle.Solid;102 row1.RowSettings.Style = DrawingStyle.Solid; 103 103 row1.RowSettings.Label = "Die Rote"; 104 104 105 105 row2.RowSettings.Color = Color.Green; 106 106 row2.RowSettings.Thickness = 3; 107 row2. Style = DrawingStyle.Solid;107 row2.RowSettings.Style = DrawingStyle.Solid; 108 108 row2.RowSettings.Label = "Die Grüne"; 109 109 110 110 row3.RowSettings.Color = Color.Blue; 111 111 row3.RowSettings.Thickness = 3; 112 row3. Style = DrawingStyle.Solid;112 row3.RowSettings.Style = DrawingStyle.Solid; 113 113 row3.RowSettings.Label = "Die Blaue"; 114 114 row3.YAxis = yaxis2; … … 143 143 row1.RowSettings.Color = Color.Red; 144 144 row1.RowSettings.Thickness = 3; 145 row1. Style = DrawingStyle.Solid;145 row1.RowSettings.Style = DrawingStyle.Solid; 146 146 147 147 model.AddDataRow(row1); … … 152 152 aggregator.RowSettings.Color = Color.Pink; 153 153 aggregator.RowSettings.Thickness = 5; 154 aggregator. Style = DrawingStyle.Solid;155 aggregator. LineType = DataRowType.SingleValue;154 aggregator.RowSettings.Style = DrawingStyle.Solid; 155 aggregator.RowSettings.LineType = DataRowType.SingleValue; 156 156 aggregator.AddWatch(row1); 157 157 … … 182 182 row1.RowSettings.Thickness = 2; 183 183 row1.RowSettings.Label = "Sinus"; 184 row1. Style = DrawingStyle.Solid;185 row1. ShowMarkers = false;184 row1.RowSettings.Style = DrawingStyle.Solid; 185 row1.RowSettings.ShowMarkers = false; 186 186 model.AddDataRow(row1); 187 187 … … 190 190 row2.RowSettings.Thickness = 3; 191 191 row2.RowSettings.Label = "Growing"; 192 row2. Style = DrawingStyle.Solid;193 row2. ShowMarkers = false;192 row2.RowSettings.Style = DrawingStyle.Solid; 193 row2.RowSettings.ShowMarkers = false; 194 194 model.AddDataRow(row2); 195 195 … … 198 198 multiAvgAggregator.RowSettings.Color = Color.DarkOliveGreen; 199 199 multiAvgAggregator.RowSettings.Thickness = 3; 200 multiAvgAggregator. Style = DrawingStyle.Solid;201 multiAvgAggregator. LineType = DataRowType.SingleValue;202 multiAvgAggregator. ShowMarkers = false;200 multiAvgAggregator.RowSettings.Style = DrawingStyle.Solid; 201 multiAvgAggregator.RowSettings.LineType = DataRowType.SingleValue; 202 multiAvgAggregator.RowSettings.ShowMarkers = false; 203 203 multiAvgAggregator.AddWatch(row1); 204 204 multiAvgAggregator.AddWatch(row2); … … 209 209 multiMaxAggregator.RowSettings.Color = Color.DarkKhaki; 210 210 multiMaxAggregator.RowSettings.Thickness = 3; 211 multiMaxAggregator. Style = DrawingStyle.Solid;212 multiMaxAggregator. LineType = DataRowType.SingleValue;213 multiMaxAggregator. ShowMarkers = false;211 multiMaxAggregator.RowSettings.Style = DrawingStyle.Solid; 212 multiMaxAggregator.RowSettings.LineType = DataRowType.SingleValue; 213 multiMaxAggregator.RowSettings.ShowMarkers = false; 214 214 multiMaxAggregator.AddWatch(row1); 215 215 multiMaxAggregator.AddWatch(row2); … … 220 220 multiMinAggregator.RowSettings.Color = Color.DarkRed; 221 221 multiMinAggregator.RowSettings.Thickness = 3; 222 multiMinAggregator. Style = DrawingStyle.Solid;223 multiMinAggregator. LineType = DataRowType.SingleValue;224 multiMinAggregator. ShowMarkers = false;222 multiMinAggregator.RowSettings.Style = DrawingStyle.Solid; 223 multiMinAggregator.RowSettings.LineType = DataRowType.SingleValue; 224 multiMinAggregator.RowSettings.ShowMarkers = false; 225 225 multiMinAggregator.AddWatch(row1); 226 226 multiMinAggregator.AddWatch(row2); … … 260 260 row1.RowSettings.Thickness = 2; 261 261 row1.RowSettings.Label = "Sinus"; 262 row1. Style = DrawingStyle.Solid;263 row1. ShowMarkers = false;262 row1.RowSettings.Style = DrawingStyle.Solid; 263 row1.RowSettings.ShowMarkers = false; 264 264 model.AddDataRow(row1); 265 265 … … 268 268 row2.RowSettings.Thickness = 3; 269 269 row2.RowSettings.Label = "Growing"; 270 row2. Style = DrawingStyle.Solid;271 row2. ShowMarkers = false;270 row2.RowSettings.Style = DrawingStyle.Solid; 271 row2.RowSettings.ShowMarkers = false; 272 272 model.AddDataRow(row2); 273 273 … … 276 276 aggregator.RowSettings.Color = Color.Pink; 277 277 aggregator.RowSettings.Thickness = 3; 278 aggregator. Style = DrawingStyle.Solid;279 aggregator. LineType = DataRowType.SingleValue;278 aggregator.RowSettings.Style = DrawingStyle.Solid; 279 aggregator.RowSettings.LineType = DataRowType.SingleValue; 280 280 aggregator.AddWatch(row1); 281 281 model.AddDataRow(aggregator); … … 285 285 maxAggregator.RowSettings.Color = Color.DeepSkyBlue; 286 286 maxAggregator.RowSettings.Thickness = 3; 287 maxAggregator. Style = DrawingStyle.Solid;288 maxAggregator. LineType = DataRowType.SingleValue;287 maxAggregator.RowSettings.Style = DrawingStyle.Solid; 288 maxAggregator.RowSettings.LineType = DataRowType.SingleValue; 289 289 maxAggregator.AddWatch(row1); 290 290 model.AddDataRow(maxAggregator); … … 294 294 avgAggregator.RowSettings.Color = Color.Violet; 295 295 avgAggregator.RowSettings.Thickness = 3; 296 avgAggregator. Style = DrawingStyle.Solid;297 avgAggregator. LineType = DataRowType.SingleValue;296 avgAggregator.RowSettings.Style = DrawingStyle.Solid; 297 avgAggregator.RowSettings.LineType = DataRowType.SingleValue; 298 298 avgAggregator.AddWatch(row1); 299 299 model.AddDataRow(avgAggregator); … … 319 319 row1.RowSettings.Thickness = 2; 320 320 row1.RowSettings.Label = "Sinus"; 321 row1. Style = DrawingStyle.Solid;322 row1. ShowMarkers = false;321 row1.RowSettings.Style = DrawingStyle.Solid; 322 row1.RowSettings.ShowMarkers = false; 323 323 model.AddDataRow(row1); 324 324 … … 327 327 row2.RowSettings.Thickness = 3; 328 328 row2.RowSettings.Label = "Growing"; 329 row2. Style = DrawingStyle.Solid;330 row2. ShowMarkers = false;329 row2.RowSettings.Style = DrawingStyle.Solid; 330 row2.RowSettings.ShowMarkers = false; 331 331 model.AddDataRow(row2); 332 332 … … 335 335 avgLineAggregator.RowSettings.Color = Color.Violet; 336 336 avgLineAggregator.RowSettings.Thickness = 3; 337 avgLineAggregator. Style = DrawingStyle.Solid;338 avgLineAggregator. LineType = DataRowType.Normal;339 avgLineAggregator. ShowMarkers = false;337 avgLineAggregator.RowSettings.Style = DrawingStyle.Solid; 338 avgLineAggregator.RowSettings.LineType = DataRowType.Normal; 339 avgLineAggregator.RowSettings.ShowMarkers = false; 340 340 avgLineAggregator.AddWatch(row1); 341 341 avgLineAggregator.AddWatch(row2); … … 361 361 row1.RowSettings.Thickness = 2; 362 362 row1.RowSettings.Label = "SinusHacked"; 363 row1. Style = DrawingStyle.Solid;364 row1. ShowMarkers = false;363 row1.RowSettings.Style = DrawingStyle.Solid; 364 row1.RowSettings.ShowMarkers = false; 365 365 model.AddDataRow(row1); 366 366 … … 369 369 row2.RowSettings.Thickness = 3; 370 370 row2.RowSettings.Label = "GrowingHacked"; 371 row2. Style = DrawingStyle.Solid;372 row2. ShowMarkers = false;371 row2.RowSettings.Style = DrawingStyle.Solid; 372 row2.RowSettings.ShowMarkers = false; 373 373 model.AddDataRow(row2); 374 374 … … 377 377 avgAggregator.RowSettings.Label = "floatingAvg"; 378 378 avgAggregator.RowSettings.Color = Color.Peru; 379 avgAggregator. ShowMarkers = false;380 avgAggregator. Style = DrawingStyle.Solid;379 avgAggregator.RowSettings.ShowMarkers = false; 380 avgAggregator.RowSettings.Style = DrawingStyle.Solid; 381 381 382 382 avgAggregator.AddWatch(row1); … … 387 387 avgAggregator2.RowSettings.Label = "floatingAvg"; 388 388 avgAggregator2.RowSettings.Color = Color.Aqua; 389 avgAggregator2. ShowMarkers = false;390 avgAggregator2. Style = DrawingStyle.Solid;389 avgAggregator2.RowSettings.ShowMarkers = false; 390 avgAggregator2.RowSettings.Style = DrawingStyle.Solid; 391 391 392 392 avgAggregator2.AddWatch(row2); … … 491 491 row1.RowSettings.Color = Color.Red; 492 492 row1.RowSettings.Thickness = 3; 493 row1. Style = DrawingStyle.Solid;493 row1.RowSettings.Style = DrawingStyle.Solid; 494 494 495 495 model.AddDataRow(row1); … … 543 543 row6.RowSettings.Label = "anyways"; 544 544 545 row1. Style = DrawingStyle.Solid;546 row2. Style = DrawingStyle.Solid;547 row3. Style = DrawingStyle.Dashed;548 549 row4. Style = DrawingStyle.Solid;550 row5. Style = DrawingStyle.Solid;551 row6. Style = DrawingStyle.Dashed;552 553 row1. LineType = DataRowType.SingleValue;554 row2. LineType = DataRowType.SingleValue;545 row1.RowSettings.Style = DrawingStyle.Solid; 546 row2.RowSettings.Style = DrawingStyle.Solid; 547 row3.RowSettings.Style = DrawingStyle.Dashed; 548 549 row4.RowSettings.Style = DrawingStyle.Solid; 550 row5.RowSettings.Style = DrawingStyle.Solid; 551 row6.RowSettings.Style = DrawingStyle.Dashed; 552 553 row1.RowSettings.LineType = DataRowType.SingleValue; 554 row2.RowSettings.LineType = DataRowType.SingleValue; 555 555 row1.AddValue(12); 556 556 … … 591 591 row1.RowSettings.Color = Color.Red; 592 592 row1.RowSettings.Thickness = 3; 593 row1. Style = DrawingStyle.Dashed;594 595 row1. LineType = DataRowType.Points;593 row1.RowSettings.Style = DrawingStyle.Dashed; 594 595 row1.RowSettings.LineType = DataRowType.Points; 596 596 model.AddDataRow(row1); 597 597 -
trunk/sources/HeuristicLab.Visualization/3.2/DataRow.cs
r1962 r1972 32 32 this.RowSettings.Color = color; 33 33 this.RowSettings.Thickness = thickness; 34 this. Style = style;34 this.RowSettings.Style = style; 35 35 this.dataRow = dataRow; 36 this. ShowMarkers = true;36 this.RowSettings.ShowMarkers = true; 37 37 } 38 38 … … 41 41 this.RowSettings.Color = color; 42 42 this.RowSettings.Thickness = thickness; 43 this. Style = style;44 this. ShowMarkers = showMarkers;43 this.RowSettings.Style = style; 44 this.RowSettings.ShowMarkers = showMarkers; 45 45 this.dataRow = dataRow; 46 46 } -
trunk/sources/HeuristicLab.Visualization/3.2/DataRowBase.cs
r1962 r1972 6 6 //private Color color = Color.Black; 7 7 //private int thickness = 2; 8 private DrawingStyle style = DrawingStyle.Solid;9 private DataRowType lineType = DataRowType.Normal;8 // private DrawingStyle style = DrawingStyle.Solid; 9 // private DataRowType lineType = DataRowType.Normal; 10 10 private YAxisDescriptor yAxis; 11 private bool showMarkers = true;11 // private bool showMarkers = true; 12 12 13 private DataRowSettings rowSettings = new DataRowSettings();13 private DataRowSettings rowSettings ; 14 14 15 15 public DataRowSettings RowSettings { 16 16 get { return rowSettings; } 17 set { rowSettings = value; } 17 set { 18 rowSettings.DataVisualSettingChanged -= value_DataVisualSettingChanged; 19 value.DataVisualSettingChanged += value_DataVisualSettingChanged; 20 rowSettings = value; 21 } 18 22 } 19 23 20 public bool ShowMarkers { 21 get { return showMarkers; } 22 set { 23 showMarkers = value; 24 OnDataRowChanged(this); 25 } 26 } 24 public DataRowBase() { 25 rowSettings = new DataRowSettings(); 26 rowSettings.DataVisualSettingChanged += value_DataVisualSettingChanged; 27 } 28 29 void value_DataVisualSettingChanged(DataRowSettings row) { 30 OnDataRowChanged(this); 31 } 32 33 // public bool ShowMarkers { 34 // get { return showMarkers; } 35 // set { 36 // showMarkers = value; 37 // OnDataRowChanged(this); 38 // } 39 // } 27 40 28 41 // public string Label { … … 50 63 // } 51 64 52 public DrawingStyle Style {53 get { return style; }54 set {55 style = value;56 OnDataRowChanged(this);57 }58 }59 60 public DataRowType LineType {61 get { return lineType; }62 set {63 lineType = value;64 OnDataRowChanged(this);65 }66 }65 // public DrawingStyle Style { 66 // get { return style; } 67 // set { 68 // style = value; 69 // OnDataRowChanged(this); 70 // } 71 // } 72 // 73 // public DataRowType LineType { 74 // get { return lineType; } 75 // set { 76 // lineType = value; 77 // OnDataRowChanged(this); 78 // } 79 // } 67 80 68 81 public YAxisDescriptor YAxis { -
trunk/sources/HeuristicLab.Visualization/3.2/IDataRow.cs
r1962 r1972 11 11 //Color Color { get; set; } 12 12 //int Thickness { get; set; } 13 DrawingStyle Style { get; set; }14 DataRowType LineType { get; set; }15 bool ShowMarkers { get; set; }13 // DrawingStyle Style { get; set; } 14 // DataRowType LineType { get; set; } 15 // bool ShowMarkers { get; set; } 16 16 DataRowSettings RowSettings { get; set; } 17 17 -
trunk/sources/HeuristicLab.Visualization/3.2/Options/DataRowSettings.cs
r1962 r1972 4 4 public class DataRowSettings { 5 5 public event UpdateDataRowSettingsHandler OnUpdateDataRowSettings; 6 public event DataVisualSettingChangedHandler DataVisualSettingChanged; 6 7 7 8 private string label; … … 36 37 } 37 38 38 // public bool ShowMarkers {39 // get { return showMarkers; }40 // set {41 // showMarkers = value;42 // //OnDataRowChanged(this);43 // }44 // }45 46 39 public string Label { 47 40 get { return label; } 48 41 set { 49 42 label = value; 50 //OnDataRowChanged(this);43 OnDataVisualSettingChanged(this); 51 44 } 52 45 } 53 46 54 47 public Color Color { 55 48 get { return color; } 56 49 set { 57 50 color = value; 58 //OnDataRowChanged(this);51 OnDataVisualSettingChanged(this); 59 52 } 60 53 } … … 64 57 set { 65 58 thickness = value; 66 //OnDataRowChanged(this);59 OnDataVisualSettingChanged(this); 67 60 } 68 61 } 69 62 70 // public DrawingStyle Style { 71 // get { return style; } 72 // set { 73 // style = value; 74 // //OnDataRowChanged(this); 75 // } 76 // } 77 // 78 // public DataRowType LineType { 79 // get { return lineType; } 80 // set { 81 // lineType = value; 82 // //OnDataRowChanged(this); 83 // } 84 // } 63 public DrawingStyle Style { 64 get { return style; } 65 set { 66 style = value; 67 OnDataVisualSettingChanged(this); 68 } 69 } 70 71 public DataRowType LineType { 72 get { return lineType; } 73 set { 74 lineType = value; 75 OnDataVisualSettingChanged(this); 76 } 77 } 78 79 public bool ShowMarkers { 80 get { return showMarkers; } 81 set { 82 showMarkers = value; 83 OnDataVisualSettingChanged(this); 84 } 85 } 86 87 protected void OnDataVisualSettingChanged(DataRowSettings row) { 88 if (DataVisualSettingChanged != null) { 89 DataVisualSettingChanged(this); 90 } 91 } 92 85 93 } 86 94 public delegate void UpdateDataRowSettingsHandler(); 95 public delegate void DataVisualSettingChangedHandler(DataRowSettings row); 87 96 } -
trunk/sources/HeuristicLab.Visualization/3.2/Options/Options.cs
r1962 r1972 29 29 Color = row.RowSettings.Color; 30 30 Thickness = row.RowSettings.Thickness; 31 Style = row. Style;31 Style = row.RowSettings.Style; 32 32 this.row = row; 33 this.ShowMarkers = row. ShowMarkers;33 this.ShowMarkers = row.RowSettings.ShowMarkers; 34 34 } 35 35 … … 38 38 row.RowSettings.Color = Color; 39 39 row.RowSettings.Thickness = Thickness; 40 row. Style = Style;41 row. ShowMarkers = this.ShowMarkers;40 row.RowSettings.Style = Style; 41 row.RowSettings.ShowMarkers = this.ShowMarkers; 42 42 } 43 43 } … … 170 170 LineThicknessCB.DataSource = GetThicknesses(); 171 171 LinestyleCB.DataSource = GetStyles(); 172 LinestyleCB.SelectedItem = model.Rows[0]. Style;172 LinestyleCB.SelectedItem = model.Rows[0].RowSettings.Style; 173 173 LineThicknessCB.SelectedItem = model.Rows[0].RowSettings.Thickness; 174 MarkercheckBox.Checked = model.Rows[0]. ShowMarkers;174 MarkercheckBox.Checked = model.Rows[0].RowSettings.ShowMarkers; 175 175 176 176 LineSelectCB.DataSource = model.Rows; … … 216 216 LinestyleCB.SelectedIndex = index; */ 217 217 LineThicknessCB.SelectedItem = ((IDataRow)LineSelectCB.SelectedValue).RowSettings.Thickness; 218 LinestyleCB.SelectedItem = ((IDataRow)LineSelectCB.SelectedValue). Style;218 LinestyleCB.SelectedItem = ((IDataRow)LineSelectCB.SelectedValue).RowSettings.Style; 219 219 selectedLineColorSelection.Color = ((IDataRow)LineSelectCB.SelectedValue).RowSettings.Color; 220 MarkercheckBox.Checked = ((IDataRow)LineSelectCB.SelectedValue). ShowMarkers;220 MarkercheckBox.Checked = ((IDataRow)LineSelectCB.SelectedValue).RowSettings.ShowMarkers; 221 221 } 222 222 } … … 229 229 private void LinestyleCB_SelectedIndexChanged(object sender, EventArgs e) { 230 230 if (LineSelectCB.SelectedValue != null) { 231 ((IDataRow)LineSelectCB.SelectedValue). Style = (DrawingStyle)LinestyleCB.SelectedItem;231 ((IDataRow)LineSelectCB.SelectedValue).RowSettings.Style = (DrawingStyle)LinestyleCB.SelectedItem; 232 232 } 233 233 } … … 241 241 private void MarkercheckBox_CheckedChanged(object sender, EventArgs e) { 242 242 if (LineSelectCB.SelectedValue != null) { 243 ((IDataRow)LineSelectCB.SelectedValue). ShowMarkers = MarkercheckBox.Checked;243 ((IDataRow)LineSelectCB.SelectedValue).RowSettings.ShowMarkers = MarkercheckBox.Checked; 244 244 } 245 245 }
Note: See TracChangeset
for help on using the changeset viewer.