Be the first to rate this file! 14 Downloads (last 30 days) File Size: 35.4 KB File ID: #28326

MUtilities

by

 

29 Jul 2010 (Updated )

MATLAB access to selected Java SwingUtilities, AWTUtilities and similar functions for HG objects

| Watch this File

File Information
Description

MUtilities is a MATLAB class that provides a collection of static methods similar to, and including some of those in the Java SwingUtilities and the new AWTUtilities collections.

----------------------------------------------------------------------------------
Note
Some MUtilities methods require the kcl.jar file for Project Waterloo. This is available as a Netbeans project with source code or as a compiled jar file at https://sourceforge.net/projects/waterloo/

This provides access to the Sun AWTUtilities and some open-source functions available from the Oracle website.
Project Waterloo is under development and will grow in the near future. The present files have been posted only for use with these MUtilties.
---------------------------------------------------------------------------------

The description below is for Version 3 of the MUtilities code which is suitable for R2008a onwards. If you have an earlier MATLAB version, use Version 1 or 2 as appropriate (see README.html). Not all functions will work unless you have JRE 1.6.10 or later.

MUtilities is a simple gateway to two superclasses

[1] MUtil which provides about 30 miscellaneous functions for manipulating MATLAB figures and other graphics

Examples:
MUtilities.setFigureFade(figurehandle, 0.1);
         Make a figure transparent in steps until alpha=0.1

MUtilities.findBelow(x,y)
         Return the handles of all MATLAB HG objects below screen location (x,y)

MUtilities.getFigureWindow(figurehandle)
         Return the AWT Window for the specified figure

[2] LookAndFeel
This class provides mechanisms to set and examine the Java Look and Feel in MATLAB. This is included for experiment only: changing the Look and Feel is likely to cause all sorts of problems and is not recommended.
The problems associated with changing the L&F are OS dependent. Expect lots of exceptions on Windows, and reduced functionality e.g. with ComboBoxes on Mac.

Acknowledgment: In writing these functions I made extensive use of Yair Altman's findjobj function.

Acknowledgements

This file inspired Three Vector.

MATLAB release MATLAB 7.2 (R2006a)
Other requirements Tested on Windows and Mac Snow Leopard to-date.
Tags for This File   Please login to tag files.

No tags are associated with this file.

Please login to add a comment or rating.
Updates
23 Aug 2010

Apologies: Mac OS junk files/folders removed from zip

Contact us