Changeset 870 for trunk/sources/HeuristicLab.Visualization
- Timestamp:
- 11/29/08 13:21:08 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r869 r870 65 65 LineShape lineShape = new LineShape(i - 1, row[i - 1], i, row[i], 0, row.Color, row.Thickness); 66 66 lineShapes.Add(lineShape); 67 // TODO each DataRow needs its own WorldShape so Y Axes can be zoomed independently. 67 68 canvasUI1.MainCanvas.WorldShape.AddShape(lineShape); 68 69 } … … 80 81 private readonly IDictionary<IDataRow, List<LineShape>> rowToLineShapes = new Dictionary<IDataRow, List<LineShape>>(); 81 82 83 // TODO use action parameter 82 84 private void OnRowValueChanged(IDataRow row, double value, int index, Action action) { 83 85 List<LineShape> lineShapes = rowToLineShapes[row]; … … 90 92 LineShape lineShape = new LineShape(index - 1, row[index - 1], index, row[index], 0, row.Color, row.Thickness); 91 93 lineShapes.Add(lineShape); 94 // TODO each DataRow needs its own WorldShape so Y Axes can be zoomed independently. 92 95 canvasUI1.MainCanvas.WorldShape.AddShape(lineShape); 93 96 } … … 104 107 } 105 108 109 // TODO use action parameter 106 110 private void OnRowValuesChanged(IDataRow row, double[] values, int index, Action action) { 107 111 foreach (double value in values) { -
trunk/sources/HeuristicLab.Visualization/LineShape.cs
r869 r870 55 55 public void Draw(Graphics graphics, Rectangle viewport, RectangleD clippingArea) { 56 56 using (Pen pen = new Pen(color, thickness)){ 57 // TODO there seems to be a bug with drawing straight lines. 57 58 Rectangle screenRect = Transform.ToScreen(boundingBox, viewport, clippingArea); 58 59 graphics.DrawLine(pen,screenRect.Left, screenRect.Bottom, screenRect.Right, screenRect.Top);
Note: See TracChangeset
for help on using the changeset viewer.