classdef AnnHeadStyle

  enumeration 
    none
    plain
    ellipse
    vback1
    vback2 
    vback3
    cback1
    cback2
    cback3
    star 
    rectangle
    diamond
  end
   
  methods (Static) 
    % LineStyle für Graphic Handle obj setzen
    function set( obj, style )
      if( ~isMatlabHandle(obj) ) return; end
      switch( style )
        case { AnnHeadStyle.none, '' }
          str = 'none';
        case { AnnHeadStyle.plain, 'plain' }
          str = 'plain';
        case { AnnHeadStyle.ellipse, 'ellipse' }
          str = 'ellipse';
        case { AnnHeadStyle.vback2, 'vback2' }
          str = 'vback2';
        case { AnnHeadStyle.vback3, 'vback3' }
          str = 'vback3';
        case { AnnHeadStyle.cback1, 'cback1' }
          str = 'cback1';
        case { AnnHeadStyle.cback2, 'cback2' }
          str = 'cback2';
        case { AnnHeadStyle.cback3, 'cback3' }
          str = 'cback3';
        case { AnnHeadStyle.star, 'star' }
          str = 'star';
        case { AnnHeadStyle.rectangle, 'rectangle' }
          str = 'rectangle';
        case { AnnHeadStyle.diamond, 'diamond' }
          str = 'diamond';
        otherwise
          return;
      end
      % nur diese Typen setzen
      set( obj, 'HeadStyle', str );
    end   
  end  % methods (Static)  
end 