- Timestamp:
- 11/29/08 12:23:52 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/MouseEventListener.cs
r725 r863 2 2 3 3 namespace HeuristicLab.Visualization { 4 /// <summary> 5 /// Helper class for different OnMouseMove and OnMouseUp implementations. 6 /// </summary> 4 7 public class MouseEventListener { 8 /// <summary> 9 /// Fired when the MouseMove method was called. 10 /// </summary> 5 11 public event MouseEventListenerHandler OnMouseMove; 12 13 /// <summary> 14 /// Fired when the MouseUp method was called. 15 /// </summary> 6 16 public event MouseEventListenerHandler OnMouseUp; 7 17 8 18 private Point startPoint; 9 19 20 /// <summary> 21 /// Call this method to fire the OnMouseMove event. 22 /// </summary> 23 /// <param name="actualPoint"></param> 10 24 public void MouseMove(Point actualPoint) { 11 25 if (OnMouseMove != null) { … … 14 28 } 15 29 30 /// <summary> 31 /// Call this method to fire the OnMouseUp event. 32 /// </summary> 33 /// <param name="actualPoint">Actual point of the mouse</param> 16 34 public void MouseUp(Point actualPoint) { 17 35 if (OnMouseUp != null) { … … 20 38 } 21 39 40 /// <summary> 41 /// Gets or sets the starting point of the mouse. 42 /// </summary> 22 43 public Point StartPoint { 23 44 get { return startPoint; } … … 26 47 } 27 48 49 /// <summary> 50 /// Handler for the MouseEventListener events. 51 /// </summary> 52 /// <param name="startPoint">Starting point of the mouse.</param> 53 /// <param name="actualPoint">Actual point of the mouse.</param> 28 54 public delegate void MouseEventListenerHandler(Point startPoint, Point actualPoint); 29 55 }
Note: See TracChangeset
for help on using the changeset viewer.