function A = set(A, varargin)
%FIGOBJ/SET

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.6 $  $Date: 2000/06/15 22:42:55 $
%   J.H. Roh

%don't pass on IsSelected
badValues = strcmp(varargin,'IsSelected');
badIndices = find(badValues);
badValues(badIndices+1)=ones(1,length(badIndices));
okValues = find(~badValues);
varargin=varargin(okValues);

if (length(varargin)==2) & strcmp(varargin{1},'IsSelected')
    %do nothing for now
else
    figHG = get(A.aChild, 'Parent');
    set(figHG, varargin{:});
end
