File Exchange

image thumbnail

stackobj

version 1.7.0.0 (29.4 KB) by Jonathan Lister
STACKOBJ is a handle class object that can be used to manage properties and callbacks in a stack.

1 Download

Updated 22 Jul 2013

View Version History

View License

There are many interactive tools that have been provided by the community that can provide great features to users of deployed applications. However, many of these fine tools tend to conflict if used together.

A good example of this is using dragzoom to zoom and/or pan interactively into an interesting data feature and then using dualcursor to inspect values. Dragzoom does a good job of restoring the callbacks that were in place prior to it's execution (it was a major inspiration for this class file), but it has no knowledge of what callbacks have been assigned afterward. Thus, turning dragzoom off in the middle of using dualcursor results in a loss of the callbacks required by the latter tool. The same is true if dualcursor is turned off. A developer may use stackobj to manage any multiple of such interactive tools and their callbacks.

The included file stackobj_demo.m is the best explanation of the utility of this submission.

This class may also be utilized to save and restore any set of properties of any object. One could also easily implement an undo feature with this object.

Cite As

Jonathan Lister (2021). stackobj (https://www.mathworks.com/matlabcentral/fileexchange/42535-stackobj), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!