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

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


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);
