public void mouseReleased(MouseEvent e){
         if ( seleccionando ){
             double x,y,x1,y1;
             x = posIniSelect.getX();
             y = posIniSelect.getY();
             x1 = e.getPoint().getX();
             y1 = e.getPoint().getY();
             if (x<x1){
                 if (y<y1){
                     posFinSelect = new Point((int)x1,(int)y1);
                 }else{
                     posIniSelect = new Point((int)x,(int)y1);
                     posFinSelect = new Point((int)x1,(int)y);
                 }
             }else{
                 if (y<y1){
                     posIniSelect = new Point((int)x1,(int)y);
                     posFinSelect = new Point((int)x,(int)y1);
                 }else{
                     posIniSelect = new Point((int)x1,(int)y1);
                     posFinSelect = new Point((int)x,(int)y);
                 }
             }
             if (listaFigura!=null){
                 deseleccionarTodo();
                 for ( int i=0 ; i<listaFigura.size() ; i++ )  {
                     Figura f = listaFigura.get(i);
                     if ( f.estaSeleccionado(posIniSelect,new Dimension((int)posFinSelect.getX()-(int)posIniSelect.getX(),(int)posFinSelect.getY()-(int)posIniSelect.getY()))){
                         f.setSelect(true);
                         listaFigurasSelec.add( f );
                     }
                     else
                         f.setSelect( false );
                 }
                 repaint();
             }
             seleccionando = false;
             repaint();
         }
         else{
             if ( moviendo ){
                 if ( listaFigurasSelec!=null ){
                    /* for ( int i=0 ; i<listaFigurasSelec.size() ; i++ )  {
                         Figura f = listaFigurasSelec.get(i);
                         if ( f instanceof ClaseGrafica ){
                             ClaseGrafica c = (ClaseGrafica)f;
                             try {
                                 //conector.enviarPaqueteClase(c.getNombre(),c.getPosicion(), (LinkedList)c.getAtributos(), (LinkedList)c.getMetodos(),
                                //     ACCION_MODIFICACION);
                             } catch (RemoteException f) {
                                 // TODO
                             }
                         }
                     }*/                     
                 }
                 moviendo=false;   
             }
         }
         posIniSelect=new Point(0,0);
         posFinSelect=new Point(0,0);        
    }