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

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.5 $  $Date: 1997/12/06 00:40:04 $


savedState = get(aObj, 'SavedState');

pos = get(aObj,'Position');

switch get(aObj,'DragConstraint')
case ''
   pos(1) = (pointX - savedState.OffsetX);
   pos(2) = (pointY - savedState.OffsetY);
case 'fixX'
   pos(2) = (pointY - savedState.OffsetY);
case 'fixY'
   pos(1) = (pointX - savedState.OffsetX);
end

aObj = set(aObj,'Position',pos);
