function val = get(A, varargin)
%AXISOBJ/GET

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

HGObj = A.scribehgobj;

if nargin == 2
   switch varargin{1}
   case 'Figure'
      HG = get(A,'MyHGHandle');
      val = get(HG,'Parent');
  case 'Axis'  % really, the overlay axis...
      HG = get(A,'MyHGHandle');
      fig = get(HG,'Parent');
      axH = findall(fig,'type','axes');
      if ~isempty(axH)
          val = double(find(handle(axH),'-class','graph2d.annotationlayer'));
          if isempty(val)
              val = findall(axH,'flat','Tag','ScribeOverlayAxesActive');
          end
      else
          val=[];
      end
  case 'ZoomScale'
      val = A.ZoomScale;
  otherwise
      val = get(HGObj, varargin{:});
   end
else
   val = get(HGObj, varargin{:});
end


