function A = editrect(varargin)
%EDITRECT/EDITRECT

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.9 $  $Date: 2000/06/01 02:52:40 $


if nargin==0
   A.Class = 'editrect';
   A.origin = [];
   A.Objects = [];
   A = class(A,'editrect',editline);
   return
end

el = editline(varargin{:});

ax = get(el,'Axis');

A.Class = 'editrect';
A.origin = [];

b = text('Visible','off',...
        'Parent',ax,...
        'HandleVisibility','off');
A.Objects = scribehandle(hgbin(b));

A = class(A,'editrect',el);
AH = scribehandle(A);
