function [handles,levels,parentIdx,listing] = findjobj(container,varargin) %#ok<*CTCH,*ASGLU,*MSNU,*NASGU>
%findjobj Find java objects contained within a specified java container or Matlab GUI handle
%
% Syntax:
% [handles, levels, parentIds, listing] = findjobj(container, 'PropName',PropValue(s), ...)
%
% Input parameters:
% container - optional handle to java container uipanel or figure. If unsupplied then current figure will be used
% 'PropName',PropValue - optional list of property pairs (case insensitive). PropName may also be named -PropName
% 'position' - filter results based on those elements that contain the specified X,Y position or a java element
% Note: specify a Matlab position (X,Y = pixels from bottom left corner), not a java one
% 'size' - filter results based on those elements that have the specified W,H (in pixels)
% 'class' - filter results based on those elements that contain the substring (or java class) PropValue
% Note1: filtering is case insensitive and relies on regexp, so you can pass wildcards etc.
% Note2: '-class' is an undocumented findobj PropName, but only works on Matlab (not java) classes
% 'property' - filter results based on those elements that possess the specified case-insensitive property string
% Note1: passing a property value is possible if the argument following 'property' is a cell in the
% format of {'propName','propValue'}. Example: FINDJOBJ(...,'property',{'Text','click me'})
% Note2: partial property names (e.g. 'Tex') are accepted, as long as they're not ambiguous
% 'depth' - filter results based on specified depth. 0=top-level, Inf=all levels (default=Inf)
% 'flat' - same as specifying: 'depth',0
% 'not' - negates the following filter: 'not','class','c' returns all elements EXCEPT those with class 'c'
% 'persist' - persist figure components information, allowing much faster results for subsequent invocations
% 'nomenu' - skip menu processing, for "lean" list of handles & much faster processing;
% This option is the default for HG containers but not for figure, Java or no container
% 'print' - display all java elements in a hierarchical list, indented appropriately
% Note1: optional PropValue of element index or handle to java container
% Note2: normally this option would be placed last, after all filtering is complete. Placing this
% option before some filters enables debug print-outs of interim filtering results.
% Note3: output is to the Matlab command window unless the 'listing' (4th) output arg is requested
% 'list' - same as 'print'
% 'debug' - list found component positions in the Command Window
%
% Output parameters:
% handles - list of handles to java elements
% levels - list of corresponding hierarchy level of the java elements (top=0)
% parentIds - list of indexes (in unfiltered handles) of the parent container of the corresponding java element
% listing - results of 'print'/'list' options (empty if these options were not specified)
%
% Note: If no output parameter is specified, then an interactive window will be displayed with a
% ^^^^ tree view of all container components, their properties and callbacks.
%
% Examples:
% findjobj; % display list of all javaelements of currrent figure in an interactive GUI
% handles = findjobj; % get list of all java elements of current figure (inc. menus, toolbars etc.)
% findjobj('print'); % list all java elements in current figure
% findjobj('print',6); % list all java elements in current figure, contained within its 6th element
% handles = findjobj(hButton); % hButton is a matlab button
% handles = findjobj(gcf,'position',getpixelposition(hButton,1)); % same as above but also return hButton's panel
% handles = findjobj(hButton,'persist'); % same as above, persist info for future reuse
% handles = findjobj('class','pushbutton'); % get all pushbuttons in current figure
% handles = findjobj('class','pushbutton','position',123,456); % get all pushbuttons at the specified position
% handles = findjobj(gcf,'class','pushbutton','size',23,15); % get all pushbuttons with the specified size
% handles = findjobj('property','Text','not','class','button'); % get all non-button elements with 'text' property
% handles = findjobj('-property',{'Text','click me'}); % get all elements with 'text' property = 'click me'
%
% Sample usage:
% hButton = uicontrol('string','click me');
% jButton = findjobj(hButton,'nomenu');
% % or: jButton = findjobj('property',{'Text','click me'});
% jButton.setFlyOverAppearance(1);
% jButton.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.HAND_CURSOR));
% set(jButton,'FocusGainedCallback',@myMatlabFunction); % some 30 callback points available...
% jButton.get; % list all changeable properties...
%
% hEditbox = uicontrol('style','edit');
% jEditbox = findjobj(hEditbox,'nomenu');
% jEditbox.setCaretColor(java.awt.Color.red);
% jEditbox.KeyTypedCallback = @myCallbackFunc; % many more callbacks where this came from...
% jEdit.requestFocus;
%
% Technical explanation & details:
% http://undocumentedmatlab.com/blog/findjobj/
% http://undocumentedmatlab.com/blog/findjobj-gui-display-container-hierarchy/
%
% Known issues/limitations:
% - Cannot currently process multiple container objects - just one at a time
% - Initial processing is a bit slow when the figure is laden with many UI components (so better use 'persist')
% - Passing a simple container Matlab handle is currently filtered by its position+size: should find a better way to do this
% - Matlab uipanels are not implemented as simple java panels, and so they can't be found using this utility
% - Labels have a write-only text property in java, so they can't be found using the 'property',{'Text','string'} notation
%
% Warning:
% This code heavily relies on undocumented and unsupported Matlab functionality.
% It works on Matlab 7+, but use at your own risk!
%
% Bugs and suggestions:
% Please send to Yair Altman (altmany at gmail dot com)
%
% Change log:
% 2018-09-21: Fix for R2018b suggested by Eddie (FEX); speedup suggested by Martin Lehmann (FEX); alert if trying to use with uifigure
% 2017-04-13: Fixed two edge-cases (one suggested by H. Koch)
% 2016-04-19: Fixed edge-cases in old Matlab release; slightly improved performance even further
% 2016-04-14: Improved performance for the most common use-case (single input/output): improved code + allow inspecting groot
% 2016-04-11: Improved performance for the most common use-case (single input/output)
% 2015-01-12: Differentiate between overlapping controls (for example in different tabs); fixed case of docked figure
% 2014-10-20: Additional fixes for R2014a, R2014b
% 2014-10-13: Fixes for R2014b
% 2014-01-04: Minor fix for R2014a; check for newer FEX version up to twice a day only
% 2013-12-29: Only check for newer FEX version in non-deployed mode; handled case of invisible figure container
% 2013-10-08: Fixed minor edge case (retrieving multiple scroll-panes)
% 2013-06-30: Additional fixes for the upcoming HG2
% 2013-05-15: Fix for the upcoming HG2
% 2013-02-21: Fixed HG-Java warnings
% 2013-01-23: Fixed callbacks table grouping & editing bugs; added hidden properties to the properties tooltip; updated help section
% 2013-01-13: Improved callbacks table; fixed tree refresh failure; fixed: tree node-selection didn't upda
没有合适的资源?快使用搜索试试~ 我知道了~
基于Matlab实现海洋涡旋可视化分析仿真系统(源码+数据).rar
共541个文件
rgb:252个
m:230个
gp:22个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 3 下载量 186 浏览量
2023-03-26
20:12:40
上传
评论 3
收藏 1.63MB RAR 举报
温馨提示
1、资源内容:基于Matlab实现海洋涡旋可视化分析仿真系统(源码+数据).rar 2、适用人群:计算机,电子信息工程、数学等专业的学习者,作为“参考资料”参考学习使用。 3、解压说明:本资源需要电脑端使用WinRAR、7zip等解压工具进行解压,没有解压工具的自行百度下载即可。 4、免责声明:本资源作为“参考资料”而不是“定制需求”,代码只能作为参考,不能完全复制照搬。不一定能够满足所有人的需求,需要有一定的基础能够看懂代码,能够自行调试代码并解决报错,能够自行添加功能修改代码。由于作者大厂工作较忙,不提供答疑服务,如不存在资源缺失问题概不负责,谢谢理解。
资源推荐
资源详情
资源评论
收起资源包目录
基于Matlab实现海洋涡旋可视化分析仿真系统(源码+数据).rar (541个子文件)
dir_structure 470B
rainbow+white+gray.gp 3KB
rainbow+white.gp 3KB
rainbow+gray.gp 3KB
tbr_var_0-500.gp 3KB
BkBlAqGrYeOrReViWh200.gp 3KB
BlGrYeOrReVi200.gp 3KB
tbr_stdev_0-30.gp 3KB
BlAqGrYeOrReVi200.gp 3KB
tbr_240-300.gp 3KB
wh-bl-gr-ye-re.gp 3KB
rainbow.gp 3KB
WhViBlGrYeOrRe.gp 1KB
BlWhRe.gp 1KB
tbrStd1.gp 1KB
ViBlGrWhYeOrRe.gp 1KB
WhViBlGrYeOrReWh.gp 1KB
tbrVar1.gp 1KB
WhBlGrYeRe.gp 1KB
WhBlReWh.gp 1KB
BlAqGrYeOrRe.gp 1KB
so4_23.gp 438B
so4_21.gp 412B
findjobj.m 164KB
pathdef.m 120KB
m_colmap.m 108KB
m_grid.m 32KB
m_grid_old.m 31KB
calcticks.m 28KB
mu_coast.m 27KB
tolerance_track_lnn.m 25KB
m_jet.m 21KB
datahash.m 20KB
colornames.m 17KB
m_vec.m 15KB
track_lnn.m 15KB
vanderwaals_const.m 15KB
mp_conic.m 13KB
mu_util.m 13KB
top_down_single.m 11KB
mp_azim.m 10KB
m_demo.m 10KB
mp_utm.m 10KB
mp_tmerc.m 10KB
m_shaperead.m 10KB
m_idist.m 10KB
colornames_view.m 9KB
m_hatch.m 9KB
m_annotation.m 8KB
m_ruler.m 8KB
thresholdBU.m 8KB
m_contfbar.m 8KB
m_shadedrelief.m 8KB
m_etopo2.m 8KB
m_track.m 7KB
colornames_cube.m 7KB
m_proj.m 7KB
spectra.m 7KB
process_eddies_and_tracks_tolerance.m 6KB
Contents.m 6KB
mp_omerc.m 6KB
mp_cyl.m 6KB
parseArgs.m 6KB
reformat_track_data_to_chelton.m 5KB
m_windbarb.m 5KB
bottom_up_single.m 5KB
m_tbase.m 5KB
extrema2.m 5KB
m_fdist.m 5KB
m_ellipse.m 5KB
thresholdTD.m 5KB
smoothspec.m 5KB
prepare_eddy_data_for_viewer.m 5KB
mc_coords.m 5KB
m_utmgrid.m 5KB
mygrid_sand2.m 5KB
nanconv.m 5KB
chunkspec.m 4KB
m_plotbndry.m 4KB
colornames_doc.m 4KB
m_elev.m 4KB
m_gshhs.m 4KB
subaxis.m 4KB
extrema.m 3KB
m_streamline.m 3KB
sine_fit.m 3KB
scan_single.m 3KB
read_data_from_single_file.m 3KB
colornames_deltaE.m 3KB
m_quiver.m 3KB
xcorrsig.m 3KB
m_legend.m 3KB
m_range_ring.m 3KB
m_rectangle.m 3KB
genpath_exclude.m 3KB
m_pcolor.m 3KB
argo_collect_mon.m 3KB
m_scale.m 3KB
m_contourf.m 2KB
cmap.m 2KB
共 541 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
- yyy51411_112023-04-24资源不错,对我启发很大,获得了新的灵感,受益匪浅。
- weixin_498653812023-05-25这个资源总结的也太全面了吧,内容详实,对我帮助很大。
- 宁雪塞冬2024-05-19资源很实用,对我启发很大,有很好的参考价值,内容详细。
Matlab仿真实验室
- 粉丝: 2w+
- 资源: 2180
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于python开发使用深度学习去预测股票后续的价格+源码+文档(毕业设计&课程设计&项目开发)
- flowable-designer-5.22.0.zip
- threadmanager.cpp
- 腾讯云小程序 - 一站式开发与部署平台
- 基于JSP+Java+Servlet采用MVC模式开发的购物网站+源码(毕业设计&课程设计&项目开发)
- fastgestures安装包,模拟mac的触控板收拾,两指代表右击, 三指拖拽
- 基于组态王的升降式横移立体车库控制系统+源码(毕业设计&课程设计&项目开发)
- 基于python+Django和协同过滤算法的电影推荐系统+源码(毕业设计&课程设计&项目开发)
- 环境配置 vscode+jupyter
- 项目全部代码,还包含使用到的图片
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功