www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@tradeoffGraphView/pPostSetMessageService.m
function pPostSetMessageService(obj) %PPOSTSETMESSAGESERVICE Method that is called when the message service is set % % PPOSTSETMESSAGESERVICE(OBJ) is called in response to a new message % service being set in the object. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. obj.super('pPostSetMessageService'); obj.addMessageServiceListener( ... { ... 'TradeoffChanged', ... 'TableChanged', ... 'SelectedPointChanged', ... 'CandidateValueChanged', ... 'TradeoffGraphSettingsChanged', ... }, ... { ... {@i_redrawall, obj, obj.hGraphTable}, ... {@i_redohighlight, obj}, ... {@i_redrawgraphs, obj, obj.hGraphTable}, ... {@i_redrawgraphs, obj, obj.hGraphTable}, ... {@i_settingchange, obj, obj.hGraphTable}, ... } ... ); % Update display obj.pUpdateDisplaySettings; obj.pUpdateIOCache; obj.pUpdateHighlight; obj.pUpdateSelection(0,0); obj.pUpdateValues; obj.pUpdateYLims; obj.pResetZoom; obj.hGraphTable.update; obj.pConfigureTable; function i_redrawall(src, evt, obj, hTable) obj.pUpdateDisplaySettings; obj.pUpdateIOCache; obj.pUpdateHighlight; obj.pUpdateSelection(0,0); obj.pUpdateValues; obj.pUpdateYLims; obj.pResetZoom; hTable.update; obj.pConfigureTable; function i_redohighlight(src, evt, obj) obj.pRedrawHighlight; function i_redrawgraphs(src, evt, obj, hTable) obj.pUpdateValues; obj.pUpdateYLims; hTable.update; function i_settingchange(src, evt, obj, hTable) obj.pUpdateDisplaySettings; if strcmp(evt.data.SettingChanged, 'ylim') obj.pUpdateYLims; obj.pResetZoom; obj.pConfigureTable; elseif strcmp(evt.data.SettingChanged, 'resetzoom') obj.pResetZoom; else obj.pUpdateValues; obj.pUpdateYLims; end hTable.update;