function h=legendtext(varargin)
%LEGENDTEXT creates text for a legend object
%
%  See also LEGEND

%   Copyright 1984-2000 The MathWorks, Inc.  
%   $Revision: 1.2 $  $Date: 2000/06/01 02:53:12 $ 

pkg   = findpackage('graph2d');
pkgHG = findpackage('hg');

if (nargout == 0)
    h = schema.class(pkg, 'legendtext' , pkgHG.findclass('text'));
    
elseif (nargout == 1)

    if (~isempty(varargin))
        h = graph2d.legendtext(varargin{:}); % Calls built-in constructor
    else
        h = graph2d.legendtext;
    end

    % initialize property values -----------------------------
    
    %set up listeners-----------------------------------------
end

