Project

General

Profile

Download (2.27 KB) Statistics
| Branch: | Tag: | Revision:
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2010 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
package org.eclipse.draw2d;
12

    
13
/**
14
 * A listener interface for receiving mouse motion events.
15
 */
16
public interface MouseMotionListener {
17

    
18
	/**
19
	 * Called when the mouse has moved over the listened to object while a
20
	 * button was pressed.
21
	 * 
22
	 * @param me
23
	 *            The MouseEvent object
24
	 */
25
	void mouseDragged(MouseEvent me);
26

    
27
	/**
28
	 * Called when the mouse has entered the listened to object.
29
	 * 
30
	 * @param me
31
	 *            The MouseEvent object
32
	 */
33
	void mouseEntered(MouseEvent me);
34

    
35
	/**
36
	 * Called when the mouse has exited the listened to object.
37
	 * 
38
	 * @param me
39
	 *            The MouseEvent object
40
	 */
41
	void mouseExited(MouseEvent me);
42

    
43
	/**
44
	 * Called when the mouse hovers over the listened to object.
45
	 * 
46
	 * @param me
47
	 *            The MouseEvent object
48
	 */
49
	void mouseHover(MouseEvent me);
50

    
51
	/**
52
	 * Called when the mouse has moved over the listened to object.
53
	 * 
54
	 * @param me
55
	 *            The MouseEvent object
56
	 */
57
	void mouseMoved(MouseEvent me);
58

    
59
	/**
60
	 * An empty implementation of MouseMotionListener for convenience.
61
	 */
62
	public class Stub implements MouseMotionListener {
63
		/**
64
		 * @see org.eclipse.draw2d.MouseMotionListener#mouseDragged(MouseEvent)
65
		 */
66
		public void mouseDragged(MouseEvent me) {
67
		}
68

    
69
		/**
70
		 * @see org.eclipse.draw2d.MouseMotionListener#mouseEntered(MouseEvent)
71
		 */
72
		public void mouseEntered(MouseEvent me) {
73
		}
74

    
75
		/**
76
		 * @see org.eclipse.draw2d.MouseMotionListener#mouseExited(MouseEvent)
77
		 */
78
		public void mouseExited(MouseEvent me) {
79
		}
80

    
81
		/**
82
		 * @see org.eclipse.draw2d.MouseMotionListener#mouseMoved(MouseEvent)
83
		 */
84
		public void mouseMoved(MouseEvent me) {
85
		}
86

    
87
		/**
88
		 * @see org.eclipse.draw2d.MouseMotionListener#mouseHover(MouseEvent)
89
		 */
90
		public void mouseHover(MouseEvent me) {
91
		}
92
	}
93

    
94
}
(109-109/171)