public void mouseDragged (MouseEvent me) {
      if(dMode==DRAW_MODE && (me.getModifiers()==MouseEvent.BUTTON1_MASK))
          redrawShape(me);    
      else if(dMode==MOVE_MODE)                        
          moveShapes(me);                               
  }