Mercurial > projects > dwt2
comparison org.eclipse.draw2d/src/org/eclipse/draw2d/MouseMotionListener.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 2005 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 *******************************************************************************/ | |
11 module org.eclipse.draw2d.MouseMotionListener; | |
12 | |
13 import java.lang.all; | |
14 import org.eclipse.draw2d.MouseEvent; | |
15 /** | |
16 * A listener interface for receiving mouse motion events. | |
17 */ | |
18 public interface MouseMotionListener { | |
19 | |
20 /** | |
21 * Called when the mouse has moved over the listened to object while a button was pressed. | |
22 * @param me The MouseEvent object | |
23 */ | |
24 void mouseDragged(MouseEvent me); | |
25 | |
26 /** | |
27 * Called when the mouse has entered the listened to object. | |
28 * @param me The MouseEvent object | |
29 */ | |
30 void mouseEntered(MouseEvent me); | |
31 | |
32 /** | |
33 * Called when the mouse has exited the listened to object. | |
34 * @param me The MouseEvent object | |
35 */ | |
36 void mouseExited(MouseEvent me); | |
37 | |
38 /** | |
39 * Called when the mouse hovers over the listened to object. | |
40 * @param me The MouseEvent object | |
41 */ | |
42 void mouseHover(MouseEvent me); | |
43 | |
44 /** | |
45 * Called when the mouse has moved over the listened to object. | |
46 * @param me The MouseEvent object | |
47 */ | |
48 void mouseMoved(MouseEvent me); | |
49 | |
50 /** | |
51 * An empty implementation of MouseMotionListener for convenience. | |
52 */ | |
53 static public class Stub | |
54 : MouseMotionListener | |
55 { | |
56 /** | |
57 * @see org.eclipse.draw2d.MouseMotionListener#mouseDragged(MouseEvent) | |
58 */ | |
59 public void mouseDragged(MouseEvent me) { } | |
60 /** | |
61 * @see org.eclipse.draw2d.MouseMotionListener#mouseEntered(MouseEvent) | |
62 */ | |
63 public void mouseEntered(MouseEvent me) { } | |
64 /** | |
65 * @see org.eclipse.draw2d.MouseMotionListener#mouseExited(MouseEvent) | |
66 */ | |
67 public void mouseExited(MouseEvent me) { } | |
68 /** | |
69 * @see org.eclipse.draw2d.MouseMotionListener#mouseMoved(MouseEvent) | |
70 */ | |
71 public void mouseMoved(MouseEvent me) { } | |
72 /** | |
73 * @see org.eclipse.draw2d.MouseMotionListener#mouseHover(MouseEvent) | |
74 */ | |
75 public void mouseHover(MouseEvent me) { } | |
76 } | |
77 | |
78 } | |
79 | |
80 |