1 /*******************************************************************************
2 * Copyright (c) 2000, 2017 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.events;
17 import org.eclipse.swt.internal.*;
20 * Classes which implement this interface provide a method
21 * that deals with the event that is generated as the mouse
24 * After creating an instance of a class that implements
25 * this interface it can be added to a control using the
26 * <code>addMouseWheelListener</code> method and removed using
27 * the <code>removeMouseWheelListener</code> method. When the
28 * mouse wheel is scrolled the <code>mouseScrolled</code> method
37 public interface MouseWheelListener extends SWTEventListener {
40 * Sent when the mouse wheel is scrolled.
42 * @param e an event containing information about the mouse wheel action
44 void mouseScrolled (MouseEvent e);