classdef FontAngle

  enumeration
    normal,
    italic, 
    oblique
  end
   
  methods (Static) 
    % FontAngle für Graphic Handle obj setzen
    function set( hnd, angle )
      if( ~isMatlabHandle(hnd) ) return; end
      switch( angle )
        case FontAngle.normal
          txt = 'normal';
         case FontAngle.italic
          txt = 'italic';
        case FontAngle.oblique
          txt = 'oblique';
        otherwise
          return;
      end
      set( hnd, 'FontAngle', txt );      
    end   
  end  % methods (Static)  
end 