Changeset 1058 for trunk/sources/HeuristicLab.Visualization/LineChart.cs
- Timestamp:
- 12/23/08 15:44:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r1049 r1058 63 63 root.AddShape(linesShape); 64 64 65 legendShape = new LegendShape(0, 0,0,0,0,Color.Black);65 legendShape = new LegendShape(0, 0, 0, 0, 0, Color.Black); 66 66 //legendShape.AddLegendItem(new LegendItem("test", Color.Red, 5)); 67 67 //legendShape.AddLegendItem(new LegendItem("test1", Color.Blue, 5)); … … 74 74 titleShape = new TextShape(0, 0, "Title", 15); 75 75 root.AddShape(titleShape); 76 77 76 78 77 … … 277 276 278 277 private void canvasUI1_MouseDown(object sender, MouseEventArgs e) { 278 Focus(); 279 279 280 if (ModifierKeys == Keys.Control) { 280 281 CreateZoomListener(e); … … 284 285 } 285 286 287 private void canvasUI1_MouseWheel(object sender, MouseEventArgs e) { 288 if (ModifierKeys == Keys.Control) { 289 double zoomFactor = (e.Delta > 0) ? 0.9 : 1.1; 290 291 RectangleD clippingArea = ZoomListener.ZoomClippingArea(linesShape.ClippingArea, zoomFactor); 292 293 SetLineClippingArea(clippingArea); 294 canvas.Invalidate(); 295 } 296 } 297 286 298 private void CreateZoomListener(MouseEventArgs e) { 287 299 ZoomListener zoomListener = new ZoomListener(e.Location);
Note: See TracChangeset
for help on using the changeset viewer.