function aObj = domove(aObj, pointX, pointY, refresh)
%AXISCHILD/DOMOVE

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.8 $  $Date: 1998/06/17 23:43:20 $


savedState = get(aObj, 'SavedState');

X = get(aObj,'XData');
Y = get(aObj,'YData');

switch get(aObj,'DragConstraint')
case ''
   aObj = set(aObj,...
	   'XData',X + (pointX-X(1) - savedState.OffsetX),...
	   'YData',Y + (pointY-Y(1) - savedState.OffsetY));
case 'fixX'
   aObj = set(aObj,'YData',Y + (pointY-Y(1) - savedState.OffsetY));
case 'fixY'
   aObj = set(aObj,'XData',X + (pointX-X(1) - ...
	   savedState.OffsetX));
end


