1 /* 2 * @(#)MouseWheelListener.java 1.5 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.awt.event; 9 10 import java.util.EventListener; 11 12 /** 13 * The listener interface for receiving mouse wheel events on a component. 14 * (For clicks and other mouse events, use the <code>MouseListener</code>. 15 * For mouse movement and drags, use the <code>MouseMotionListener</code>.) 16 * <P> 17 * The class that is interested in processing a mouse wheel event 18 * implements this interface (and all the methods it contains). 19 * <P> 20 * The listener object created from that class is then registered with a 21 * component using the component's <code>addMouseWheelListener</code> 22 * method. A mouse wheel event is generated when the mouse wheel is rotated. 23 * When a mouse wheel event occurs, that object's <code>mouseWheelMoved</code> 24 * method is invoked. 25 * <p> 26 * For information on how mouse wheel events are dispatched, see 27 * the class description for {@link MouseWheelEvent}. 28 * 29 * @author Brent Christian 30 * @version 1.5 12/19/03 31 * @see MouseWheelEvent 32 * @since 1.4 33 */ 34 public interface MouseWheelListener extends EventListener { 35 36 /** 37 * Invoked when the mouse wheel is rotated. 38 * @see MouseWheelEvent 39 */ 40 public void mouseWheelMoved(MouseWheelEvent e); 41 } 42