stackobj

버전 1.7.0.0 (29.4 KB) 작성자: Jonathan Lister
STACKOBJ is a handle class object that can be used to manage properties and callbacks in a stack.
다운로드 수: 656
업데이트 날짜: 2013/7/22

라이선스 보기

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.

인용 양식

Jonathan Lister (2024). stackobj (https://www.mathworks.com/matlabcentral/fileexchange/42535-stackobj), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.7.0.0

Updated description. Added listener to watch the target properties to prevent a tool lower in the stack from changing the active callbacks.

1.5.0.0

added helper method, auto_wipe feature, and keyword shortcuts 'all' and 'callbacks', changed demo file

1.3.0.0

updating description and title

1.0.0.0