function update(Constr, varargin)
%UPDATE  Updates constraint display when data changes.
%
%   Main method for updating the display when the constraint
%   data changes.  Issues a DataChanged event to notify all
%   observers that the data changed (no listeners on individual
%   data properties).

%   Author(s): P.Gahinet
%   Copyright 1986-2002 The MathWorks, Inc. 
%   $Revision: 1.1.6.3 $  $Date: 2004/12/26 21:51:09 $

for idx = 1:numel(Constr)
   if isa(Constr,'plotconstr.designconstr') && Constr(idx).Activated
      % Protect against illicit calls during undo add
      Constr(idx).render;  % rerender
      % Notify observers of data change
      Constr(idx).send('DataChanged')
   end
end