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

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


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


