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

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.1 $  $Date: 1998/06/18 00:40:08 $


savedState = get(aObj, 'SavedState');

switch savedState.DragConstraint
case ''
   pos = get(aObj,'Position');
   newX = pos(1) + (pointX-pos(1) - savedState.OffsetX);
   newY = pos(2) + (pointY-pos(2) - savedState.OffsetY);
   pos(1:2) = [newX newY];
   aObj = set(aObj,'Position',pos);
case 'fixX'
case 'fixY'
end
