function aObj = editstyle(aObj, style)
%AXISTEXT/EDITSTYLE

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.8 $  $Date: 2000/06/01 02:52:30 $
%   J.H. Roh

notNormal = strcmp(get(gcbo,'Checked'),'on');

switch style
case 'normal'
   aObj = set(aObj,'FontAngle','normal');   
   aObj = set(aObj,'FontWeight','normal');
case 'italic'
   if notNormal
      angle = 'normal';
   else
      angle = 'italic';
   end
   aObj = set(aObj,'FontAngle',angle);
case 'bold'
   if notNormal
      weight = 'normal';
   else
      weight = 'bold';
   end
   aObj = set(aObj,'FontWeight',weight);
end
