public void move(MouseEvent e){
  Point2D pnt=getProjectionPoint(e);
  int x=(int)pnt.getX();
  int y=(int)pnt.getY();
  if (line.getRenderType() == OMGraphic.RENDERTYPE_OFFSET) {
    gpm=new OffsetGrabPoint(x,y);
    gpm.addGrabPoint(gp1);
    gpm.addGrabPoint(gp2);
  }
 else {
    gpm=gpo;
    gpm.set(x,y);
    gpm.updateOffsets();
  }
  movingPoint=gpm;
}

public void move ( MouseEvent e ) { Point2D pnt = getProjectionPoint ( e ) ; int x = ( int ) pnt . getX ( ) ; int y = ( int ) pnt . getY ( ) ; if ( line . getRenderType ( ) == OMGraphic . RENDERTYPE_OFFSET ) { gpm = new OffsetGrabPoint ( x , y ) ; gpm . addGrabPoint ( gp1 ) ; gpm . addGrabPoint ( gp2 ) ; } else { gpm = gpo ; gpm . set ( x , y ) ; gpm . updateOffsets ( ) ; } movingPoint = gpm ; }
called to set the offsetgrabpoint to the current mouse location , and update the offsetgrabpoint with all the other grabpoint locations , so everything can shift smoothly . should also set the offsetgrabpoint to the movingpoint . should be called only once at the beginning of the general movement , in order to set the movingpoint . after that , redraw ( e ) should just be called , and the movingpoint will make the adjustments to the graphic that are needed .
