quicktime.app.event
Class MouseMoveAdapter

java.lang.Object
  |
  +--quicktime.app.event.MouseMoveAdapter
All Implemented Interfaces:
java.util.EventListener, MouseMoveListener, QTMouseListener
Direct Known Subclasses:
MouseEnterExitAdapter

public class MouseMoveAdapter
extends java.lang.Object
implements MouseMoveListener

A convenience adapter class for dealing with mouse movement events within a space.


Constructor Summary
MouseMoveAdapter()
           
 
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 mouseDragged(QTMouseEvent e)
          Invoked when a mouse button is pressed in a space and then dragged.
 void mouseMoved(QTMouseEvent e)
          Invoked when the mouse button has been moved in a space (with no buttons no down).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseMoveAdapter

public MouseMoveAdapter()
Method Detail

mouseDragged

public void mouseDragged(QTMouseEvent e)
Invoked when a mouse button is pressed in a space and then dragged. Mouse drag events will continue to be delivered to the space where the first originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the space).
Specified by:
mouseDragged in interface MouseMoveListener

mouseMoved

public void mouseMoved(QTMouseEvent e)
Invoked when the mouse button has been moved in a space (with no buttons no down).
Specified by:
mouseMoved in interface MouseMoveListener

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.