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

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.7 $  $Date: 1997/12/06 00:40:08 $
%   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
