Home > By category > Scripts >Multimedia > Mouse Motion Handler

Mouse Motion Handler

  • Downloads: 
  • Views: 
  • Rating:

MouseMotionHandler is a MATLAB class that uses a MATLAB figure's WindowButtonMotionFcn callback as a hook to extend button motion functionality to all handle graphics child objects of a figure including axes, lines, surfaces uipanels, uicontrols etc.

MouseMotionHandler provides an alternative to chaining callbacks or having a lengthy switch block in a WindowButtonMotionFcn callback to manage mouse motion effects. MouseMotionHandler puts its own callback into a figure's WindowButtonMotionFcn property. This callback manages the servicing of callbacks for other objects in the figure. It actively determines what is beneath the mouse then invokes a user-specified callback for that object, if one is set.
Specify these objects and their mouse motion callbacks using the MouseMotionHandler add and put methods as described below.

A WindowButtonMotionFcn object is created simply by calling its constructor with the figure handle as input:
>> obj=MouseMotionHandler(hFig);

Button motion callbacks can then be assigned for child objects of the figure (and for the figure itself) using the MouseMotionHandler class add or static put method:

obj.add(hObj, {@MyFunction, arg1, arg2 });


MouseMotionHandler.put(hFig, hObj, {@MyFunction, arg1, arg2 });

where hObj is the target object's handle (or a vector of handles) and {@MyFunction, arg1, arg2 }) is the standard MATLAB cell array construct for setting up a callback (strings and function handles can also be used as usual).

The user-specified callback will be invoked whenever the mouse moves over the target object (pressed or not).

Callbacks can also be assigned according to the Tag and Type properties of the objects (in which case the objects need not have been instantiated at the time of the add or put call).

Any number of add or put calls can be made for each figure and these calls can be made at any the point in your code. Most typically they will be made in the functions that create the relevant objects. This should greatly aid code readability and maintenance with complex GUIs and it avoids the need to have a separate cumbersome WindowButtonMotionFcn callback dealing with all objects in a lengthy switch block.

MouseMotionHandler also extends the functionality of the standard WindowButtonMotionFcn callback: its internal logic discriminates between mouse entered, moved and exited calls (see the help text for details).

MouseMotionHandler works alongside the standard MATLAB FigureToolManager. You can pan/zoom/rotate graphics as usual. It has no affect on any callbacks other than the figure WindowButtonMotionFcn. Other figure callbacks, and all HG child object callbacks , are unaffected as are mouse event callbacks from any Java objects incorporated into the figure.

For illustration, the code includes a static method that can be called to illustrate its use. Type:
>> MouseMotionHandler.demo();
at the command prompt.

This code was developed as part of Project Waterloo, which itself is part of the sigTOOL project at King's College London. (http://sigtool.sourceforge.net/).

Free download from Shareware Connection - MouseMotionHandler is a MATLAB class that uses a MATLAB figure's WindowButtonMotionFcn callback as a hook to extend button motion functionality to all handle graphics child objects of a figure including axes, lines, surfaces uipanels, uicontrols et

Publisher: Malcolm Lidierth | License: Shareware
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 26-06-2013 | Rating: 0 | Title: Mouse Motion Handler

Author Url: http://sigtool.sourceforge.net
Program Info Url: http://sigtool.sourceforge.net
Download Url: http://www.mathworks.com/matlabcentral/fx_files/29913/4/MouseMotionHandler.zip

More downloads from Mouse Motion Handler publisher Malcolm Lidierth:

Making MATLAB Swing - A collection of MATLAB classes that provide support for TabbedPanes, SplitPanes, SideBars, Accordions etc within MATLAB

OpenGL 3D graphics in MATLAB using jzy3d - A demo of some features of the jzy3d 3d graphics package from http://www.jzy3d.org/

Using Java Swing components in MATLAB - JCONTROL provides an easy way to integrate a full range of java GUIs from the java.awt and javax.swing libraries into MATLAB.

Sinc Resample - If the input is a bandlimited signal containing components at DC - 0.5Fs where Fs is the sample rate, SINCRESAMPLE will return the signal that would have been seen with a higher sampling rate (and the same filter settings)

DataViewer - It may be useful elsewhere and is made available here in stand-alone form.

Mouse Motion Handler keywords:
Mouse Motion Handler related downloads:

Advanced Setpoints for Motion Systems - Motion systems are widely used in industry; for instance for robotics and pick-and place units.

Desuade Motion Package Script - This is a complete Flash AS3 engine library that simplifies complex motion

MTN Library - MTN Library is a .Net control with a handler to expose Ajax functions directly by cs code without aspx code and has a web control to create the code in aspx page using jquery for Json, XML, Text , JsonP and file upload.

Motion 5: 3D Text Fly-Bys - Watch and learn how to create a complex 3D text flyby effect in this 26-video series taught by motion graphics expert, Iain Anderson...Apple's new Motion 5 software is a motion graphics artist*s wonderland where preset complex FX are created with...

SCP Backup - SCP Backup is a remarkably simple and efficient backup utility. It is so easy to use that you can back up your critical data on the fly with a single mouse-click. The key is easy-to-create back-up profiles and great compression.

Shareware Connection periodically updates pricing and software information of 'Mouse Motion Handler' from company source 'Malcolm Lidierth' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'Mouse Motion Handler' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Mouse Motion Handler.

New Reviews

Driver Fusion - To keep your laptop and desktop running smoothly and get the best performance out of it, it is important to pay attention to some aspects. It is quite important to ensure your PC device drivers are updated. Components like motherboards, GPU and ...

Apple Aperture - It is quite true that Macintosh users generally get fewer tools to pick from than Windows users but they have some solid and impressive software to work with. One such example is Apple’s professional image editing and organizing tool, ...

Avast Endpoint Protection Suite Plus - PC security has become a vital aspect of computing nowadays and business users face the heat more than home users. While installing and handling a standalone antivirus suite is neither tedious nor time consuming, the scenario is different in ...

Sigma Internet Monitoring - There is no denying the huge importance of internet in human life. Without the web, it has literally become imposable to carry on a lot of personal and professional activities, irrespective of your age, gender and qualification. While the web ...

AOMEI Partition Assistant Lite Edition - No matter whether you are a casual PC user or deal with a number of computers for professional needs, taking care of hardware components is a necessity. Among all hardware components used in laptop or desktop, hard disk is the most important one. ...

Undela - Computers users may lose data owing to a number of reasons. Data loss caused by hardware failure does not take place regularly. However, there are many instances when you may end up deleting files and folders by mistake. In shared computers, ...

Stellar Insta Backup - Data Backup Software - Taking backup of data stored in your PC is quite essential these days, given the fact average PC users deal with tons of data and hardware failure or OS corruption can happen. However, it is also necessary that you pick the right software for ...

Quick Heal PCTuner - Performance deficit or unexpected slowdown is something most PC users are acquainted with. Even those with powerful laptops and desktops have to face these issues from time to time. A PC can run slowly when temporary files clutter the HDD or ...

Cubase Artist - Professional audio editors and artists dealing in MIDI composition have a soft corner for Steinberg Cubase Artist. Its origin can be traced back to Atari ST and in later years, the app made way into PCs and Macs. The latest version is a flexible ...

Reallusion iClone - Nowadays, there is no scarcity of 3D animation and modeling software in market. However, not all such apps are user friendly and easy on wallet. If you want an intuitive and capable tool for making 3D animations without requiring much time, give ...

New Downloads

Free ISO Grabber

It grabs an exact image of a
CD/DVD and it supports CD/DVD
discs of almost all formats.
The program operates in wizard

Softtanks Business Planner

Free Business Planning
Software from Softtanks.com,
It will change the way your
business works. Your
Employees, ...

Local Depth SIFT and Scale
Invariant Spin Image local
features for 3D meshes

a toolbox to compute Local
Depth SIFT and Scale Invariant
Spin Image local features for
3D meshes.

Radial Basis Function

Radial basis functions are use
for function approximation and

Node Recommendation

This module shows users other
nodes that they might be
interested in based on a
simple logic and using

Formatter Reference

Provides a "Formatter
Reference" field type for
being able to display other
fields differently on a
per-entity basis.


This module creates a tarball
that consists of your Drupal
database and all files under
DOCUMENT_ROOT, which can then
be ...

Complex Function Grapher

-Graphs user-inputed functions
of a complex square input

Generate coefficients for
Savitzky-Golay smoothing

function c =


wikimarkup is a class to
automatically generate
latex/wiki/html markup for
matlab objects


This function converts a gray
coded string to its equivalent
decimal representation

from database

Ajax autosuggest/autocomplete
from database helps the
visitor and presents in real
time some possible results
based on ...