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

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.8 $  $Date: 2000/06/15 22:42:51 $
%   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
