www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@tableCentricUI/changeTradeoff.m
function changeTradeoff(obj, pTO, pTbl) %CHANGETRADEOFF Switch tradeoff being viewed % % CHANGETRADEOFF(OBJ, PTO, PT) changes the display to show the given % tradeoff and the given table within this tradeoff. % Copyright 2000-2013 The MathWorks, Inc. and Ford Global Technologies, Inc. hTO = pTO.info; startcell = getClosestValidCell(hTO, pTbl, {1,1}); obj.MessageService.setTradeoff(pTO, pTbl, 'table', startcell); % Check the appropriate items in the view menu if ~isempty(obj.ViewMenu) checks = {'off';'off';'off';'off'}; if getGraphError(hTO) checks{1} = 'on'; end if getGraphSameY(hTO) checks{2} = 'on'; end if getGraphConstraints(hTO) checks{3} = 'on'; end if getZoomConstraints(hTO) checks{4} = 'on'; end set([obj.DisplayErrorMenu; obj.DisplayCommonYMenu; obj.DisplayConstraintsMenu; obj.ZoomConstraintsMenu], ... {'Checked'}, checks) end