www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xreglegend/get.m
function out=get(obj,property) % xreglegend/GET Set interface for xreglegend object % % Valid properties are: % 'Position' - 4 element position vector in pixels % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. % Bail if we've not been given an xreglegend object if ~isa(obj,'xreglegend') error(message('mbc:xreglegend:InvalidObject1')) end out = []; obj = get(obj.axes,'UserData'); switch lower(property) case 'position' out=get(obj.axespanel, 'Position'); case 'axes' out = obj.axes; end