%
%  Abgel. Klasse für Plot-Objekte
%
%  >> d = Data();
%  >> x = [0,1,2,3,4,5];
%  >> y = [3,0,1,4,2,0];
%  >> d + [x',y'];
%  >> s = ShPlot( d )
%
classdef ShPlot < ShLines
  properties (Access = private)
    data = Data.empty();
  end
    
  methods
    function obj = ShPlot( d )
      obj@ShLines(0,0); 
      if( isDataObj(d) )
        obj.data = d;
      else
        obj.data = Data.empty();
      end
      obj.hnd = [];
    end
    
    function disp( obj )
      disp@Shape(obj);
      disp( obj.data );
    end
  
    function draw( obj )      
      clear( obj );    % Methode von Shape
      if( ~isempty( obj.data ) )
        obj.hnd = plot( obj.data );  
        obj.setLnData();
      end
    end
    
  end
end