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. package java.awt.event;
  8. import java.util.EventListener;
  9. /**
  10. * The listener interface for receiving mouse wheel events on a component.
  11. * (For clicks and other mouse events, use the <code>MouseListener</code>.
  12. * For mouse movement and drags, use the <code>MouseMotionListener</code>.)
  13. * <P>
  14. * The class that is interested in processing a mouse wheel event
  15. * implements this interface (and all the methods it contains).
  16. * <P>
  17. * The listener object created from that class is then registered with a
  18. * component using the component's <code>addMouseWheelListener</code>
  19. * method. A mouse wheel event is generated when the mouse wheel is rotated.
  20. * When a mouse wheel event occurs, that object's <code>mouseWheelMoved</code>
  21. * method is invoked.
  22. * <p>
  23. * For information on how mouse wheel events are dispatched, see
  24. * the class description for {@link MouseWheelEvent}.
  25. *
  26. * @author Brent Christian
  27. * @version 1.5 12/19/03
  28. * @see MouseWheelEvent
  29. * @since 1.4
  30. */
  31. public interface MouseWheelListener extends EventListener {
  32. /**
  33. * Invoked when the mouse wheel is rotated.
  34. * @see MouseWheelEvent
  35. */
  36. public void mouseWheelMoved(MouseWheelEvent e);
  37. }