www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@tradeoffMessageService/setSelectedPoint.m
function setSelectedPoint(obj, type, index, EventSuppressionFlag) %SETSELECTEDPOINT Select a new point to tradeoff % % SETSELECTEDPOINT(OBJ, TYPE, INDEX) sets a new point for tradeoff. TYPE % is one of 'table' or 'list', and INDEX is either a cell array containing % table indices - {R, C, ...} or an integer index into the list of all % tradeoff points. The event "SelectedPointChanged" will be sent. % Copyright 2000-2012 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin<4 EventSuppressionFlag = false; end obj.pSetSelData(type, index); % Update the services object's cached information obj.TradeoffServices.updateFromTradeoff; if ~EventSuppressionFlag obj.send('SelectedPointChanged', handle.EventData(obj, 'SelectedPointChanged')); end