01: /*******************************************************************************
02: * Copyright (c) 2000, 2007 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 a method
16: * that deals with the event that is generated as the mouse
17: * wheel is scrolled.
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>addMouseWheelListener</code> method and removed using
22: * the <code>removeMouseWheelListener</code> method. When the
23: * mouse wheel is scrolled the <code>mouseScrolled</code> method
24: * will be invoked.
25: * </p>
26: *
27: * @see MouseEvent
28: *
29: * @since 3.3
30: */
31: public interface MouseWheelListener extends SWTEventListener {
32:
33: /**
34: * Sent when the mouse wheel is scrolled.
35: *
36: * @param e an event containing information about the mouse wheel action
37: */
38: public void mouseScrolled(MouseEvent e);
39: }
|