quicktime.app.event
Class MouseButtonAdapter

java.lang.Object
  |
  +--quicktime.app.event.MouseButtonAdapter
All Implemented Interfaces:
java.util.EventListener, MouseButtonListener, QTMouseListener
Direct Known Subclasses:
ButtonActivator

public class MouseButtonAdapter
extends java.lang.Object
implements MouseButtonListener

A convenience adapter class for dealing with MouseButton events.


Constructor Summary
MouseButtonAdapter()
           
 
Method Summary
 boolean matchModifierFilter(int mods)
          An event is only passed on to interested listeners if those listeners return true to this filter call.
 void mouseClicked(QTMouseEvent e)
          Invoked when the mouse has been clicked in a space.
 void mousePressed(QTMouseEvent e)
          Invoked when the mouse has been pressed in a space.
 void mouseReleased(QTMouseEvent e)
          Invoked when a mouse button has been released where the press occured within the space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseButtonAdapter

public MouseButtonAdapter()
Method Detail

mouseClicked

public void mouseClicked(QTMouseEvent e)
Invoked when the mouse has been clicked in a space.
Specified by:
mouseClicked in interface MouseButtonListener

mousePressed

public void mousePressed(QTMouseEvent e)
Invoked when the mouse has been pressed in a space.
Specified by:
mousePressed in interface MouseButtonListener

mouseReleased

public void mouseReleased(QTMouseEvent e)
Invoked when a mouse button has been released where the press occured within the space.
Specified by:
mouseReleased in interface MouseButtonListener

matchModifierFilter

public boolean matchModifierFilter(int mods)
An event is only passed on to interested listeners if those listeners return true to this filter call. By default this method returns true.
Specified by:
matchModifierFilter in interface QTMouseListener
Following copied from interface: quicktime.app.event.QTMouseListener
Parameters:
mods - the state of the modifier keys.
Returns:
true if a particular listener is interested in receiving the mouse event(s) it is interested in with the given modifier state, or false if otherwise.