Changeset 1233 for trunk/sources/HeuristicLab.Visualization/LineChart.cs
- Timestamp:
- 02/28/09 21:21:59 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r1195 r1233 2 2 using System.Collections.Generic; 3 3 using System.Drawing; 4 using System.Drawing.Drawing2D;5 4 using System.Windows.Forms; 6 5 using HeuristicLab.Core; 6 using HeuristicLab.Visualization.Legend; 7 7 using HeuristicLab.Visualization.Options; 8 8 … … 65 65 root.AddShape(titleShape); 66 66 67 minMaxLineShape = new MinMaxLineShape(this.minDataValue, this.maxDataValue, 0,Color.Yellow, 4, DrawingStyle.Solid);67 minMaxLineShape = new MinMaxLineShape(this.minDataValue, this.maxDataValue, Color.Yellow, 4, DrawingStyle.Solid); 68 68 root.AddShape(minMaxLineShape); 69 69 … … 207 207 } 208 208 for (int i = 1; i < row.Count; i++) { 209 LineShape lineShape = new LineShape(i - 1, row[i - 1], i, row[i], 0,row.Color, row.Thickness, row.Style);209 LineShape lineShape = new LineShape(i - 1, row[i - 1], i, row[i], row.Color, row.Thickness, row.Style); 210 210 lineShapes.Add(lineShape); 211 211 // TODO each DataRow needs its own WorldShape so Y Axes can be zoomed independently. … … 246 246 maxDataRowCount = row.Count; 247 247 } 248 LineShape lineShape = new LineShape(index - 1, row[index - 1], index, row[index], 0,row.Color, row.Thickness,248 LineShape lineShape = new LineShape(index - 1, row[index - 1], index, row[index], row.Color, row.Thickness, 249 249 row.Style); 250 250 lineShapes.Add(lineShape); … … 412 412 413 413 private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { 414 varoptionsdlg = new OptionsDialog(this);415 optionsdlg.Show ();414 OptionsDialog optionsdlg = new OptionsDialog(this); 415 optionsdlg.ShowDialog(this); 416 416 } 417 417 418 418 public void ApplyChangesToRow(IDataRow row) { 419 foreach ( varls in rowToLineShapes[row]) {419 foreach (LineShape ls in rowToLineShapes[row]) { 420 420 ls.LSColor = row.Color; 421 421 ls.LSThickness = row.Thickness; 422 if (row.Style == DrawingStyle.Dashed) { 423 ls.LSDashStyle = DashStyle.Dash; 424 } 425 else { 426 ls.LSDashStyle = DashStyle.Solid; //default 427 } 422 ls.LSDrawingStyle = row.Style; 428 423 } 429 424 canvas.Invalidate();
Note: See TracChangeset
for help on using the changeset viewer.