org.jrabbit.base.input
Interface MouseListener


public interface MouseListener

A MouseListener is an interface used to provide automatic notification of Mouse events. To receive notifications, add a listener to MouseHandler. If the object receiving updates is no longer being used, remove it from the MouseHandler. NOTE: A MouseListener does not receive updates about mouse movement. To receive those, look at MouseMotionListener.

Author:
Chris Molini

Method Summary
 void buttonClicked(int button)
          Notifies the MouseListener when a button is clicked.
 void buttonReleased(int button)
          Notifies the MouseListener when a button is released.
 void wheelMoved(int delta)
          Notifies the MouseListener when the wheel is moved.
 

Method Detail

buttonClicked

void buttonClicked(int button)
Notifies the MouseListener when a button is clicked.

Parameters:
button - The button being pressed.

buttonReleased

void buttonReleased(int button)
Notifies the MouseListener when a button is released.

Parameters:
button - The button being released.

wheelMoved

void wheelMoved(int delta)
Notifies the MouseListener when the wheel is moved.

Parameters:
delta - How far the wheel has moved.