Changeset 1244
- Timestamp:
- 03/03/09 20:50:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r1242 r1244 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Diagnostics; 3 4 using System.Drawing; 4 5 using System.Windows.Forms; … … 390 391 } 391 392 393 private Point prevMousePosition = Point.Empty; 394 392 395 private void canvas_MouseMove(object sender, MouseEventArgs e) { 393 double x = Transform.ToWorldX(e.X, berni.Viewport, berni.ClippingArea); 394 double y = Transform.ToWorldY(e.Y, berni.Viewport, berni.ClippingArea); 395 396 mousePointer.Rectangle = new RectangleD(x-1, y-1, x+1, y+1); 397 canvasUI.Invalidate(); 396 if (prevMousePosition != e.Location) { 397 prevMousePosition = e.Location; 398 399 double x = Transform.ToWorldX(e.X, berni.Viewport, berni.ClippingArea); 400 double y = Transform.ToWorldY(e.Y, berni.Viewport, berni.ClippingArea); 401 402 mousePointer.Rectangle = new RectangleD(x - 1, y - 1, x + 1, y + 1); 403 canvasUI.Invalidate(); 404 } 398 405 } 399 406
Note: See TracChangeset
for help on using the changeset viewer.