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

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


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
