Esempio n. 1
0
 /** This stops the layout if it's running, if it's not running it does nothing... */
 public void stop() {
   if (runner.isAlive()) {
     try {
       active = false;
       if (idleing) {
         runner.interrupt();
       }
       System.out.println(
           "Thread "
               + Thread.currentThread().getName()
               + " Ordering thread layout thread to stop.");
       runner.join();
       initThread();
     } catch (InterruptedException ex) {
       System.err.println("Layout Thread failed to stop");
       Logger.getLogger(WeightedElasticLayout.class.getName()).log(Level.SEVERE, null, ex);
     }
   }
 }