www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@tableTableView/pSetLegendModelIcon.m
function pSetLegendModelIcon(obj, state) %PSETLEGENDMODELICON Set the legend state of the valid model evaluation item % % PSETLEGENDMODELICON(OBJ, STATE) turns the legend item for "Valid model % evaluation" on and off. STATE is a logical flag, with a setting of true % turning the legend item on. % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. if obj.ShowLegend if state set(obj.hLegendValidModel, 'ImageFile', 'toffmodelcell.bmp', ... 'String', 'Valid model evaluation'); else set(obj.hLegendValidModel, 'ImageFile', '', ... 'String', ''); end end % Save last requested state so we can use it when turning the legend on/off obj.ShowLegendValidModel = state;