function A = editrect(varargin)
%EDITRECT/EDITRECT

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.8 $  $Date: 1997/12/17 21:44:19 $


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);
