function B = subsref(A,S)
%FIGOBJ/SUBSREF

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.7 $  $Date: 1997/12/06 00:40:46 $
%   B.A. Jones & J.H. Roh 4-25-97.


switch S.type
case '.'
   switch lower(S.subs)
   case 'hghandle'
      B = get(A,'HGHandle');
   case 'myhghandle'
      B = get(A,'MyHGHandle');
   case 'notes'
      B = A.Notes;
   case 'date'
      B = A.Date;
   case 'origin'
      B = A.Origin;
   case 'savedposition'
      B = A.SavedPosition;
   case 'dragobjects'
      B = A.DragObjects;
   otherwise
      hgObj = A.scribehgobj;
      B = subsref(hgObj,S);
   end
end
