www.gusucode.com > mbclayouts 工具箱 matlab 源码程序 > mbclayouts/@xregslidefxlayout/get.m
function res =get(obj,parameter) % Synopsis % function res =get(obj,parameter) % % Description % Performs the same action as the handle graphics get function. % Some parameter types are overloaded however to take into account % object groupings. % % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. ud=obj.g.info; switch upper(parameter) case 'POSITION' res = get(obj.xregcontainer,'Position'); case 'VISIBLE' opts={'off','on'}; res=opts{ud.visible+1}; case 'SLIDEFX' opts={'off','on'}; res=opts{ud.slidefx+1}; case 'SLIDEDIRECTION' opts={'north','east','south','west'}; res=opts{ud.slidedir}; case 'CENTER' el=get(obj.xregcontainer,'elements'); res=el{1}; otherwise res = get(obj.xregcontainer,parameter); end