www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@mmSiteGraphView/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( ... { ... 'DataChanged'; ... 'BreakpointsChanged'; ... 'AxisOrderChanged'; ... 'SiteSelectionChanged'; ... 'ToleranceChanged'; ... }, ... { ... @i_fullrefresh; ... @i_fullrefresh; ... @i_fullrefresh; ... @i_redrawmodelsites; ... @i_redrawtol; ... } ... ); obj.pUpdateAxesLimits; obj.pUpdateBreakpoints; obj.pUpdateModelSites; obj.pUpdateTolPatch; function i_fullrefresh(src, evt) obj.pUpdateAxesLimits; obj.pUpdateBreakpoints; obj.pUpdateModelSites; obj.pUpdateTolPatch; end function i_redrawtol(src, evt) % Only redraw tolerance boxes if breakpoints are not auto-generating if ~obj.MessageService.AutoBreakpoints obj.pUpdateTolPatch; end end function i_redrawmodelsites(src, evt) % Only redraw model sites if breakpoints are not auto-generating if ~obj.MessageService.AutoBreakpoints obj.pUpdateModelSites; end end end