01: /*******************************************************************************
02: * Copyright (c) 2000, 2004 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.events;
11:
12: import org.eclipse.swt.internal.SWTEventListener;
13:
14: /**
15: * Classes which implement this interface provide methods
16: * that deal with the events that are generated as mouse buttons
17: * are pressed.
18: * <p>
19: * After creating an instance of a class that implements
20: * this interface it can be added to a control using the
21: * <code>addMouseListener</code> method and removed using
22: * the <code>removeMouseListener</code> method. When a
23: * mouse button is pressed or released, the appropriate method
24: * will be invoked.
25: * </p>
26: *
27: * @see MouseAdapter
28: * @see MouseEvent
29: */
30: public interface MouseListener extends SWTEventListener {
31:
32: /**
33: * Sent when a mouse button is pressed twice within the
34: * (operating system specified) double click period.
35: *
36: * @param e an event containing information about the mouse double click
37: *
38: * @see org.eclipse.swt.widgets.Display#getDoubleClickTime()
39: */
40: public void mouseDoubleClick(MouseEvent e);
41:
42: /**
43: * Sent when a mouse button is pressed.
44: *
45: * @param e an event containing information about the mouse button press
46: */
47: public void mouseDown(MouseEvent e);
48:
49: /**
50: * Sent when a mouse button is released.
51: *
52: * @param e an event containing information about the mouse button release
53: */
54: public void mouseUp(MouseEvent e);
55: }
|