Beispiel #1
0
 public void valueChanged(AlgorithmEvent event) {
   switch (event.getId()) {
     case AlgorithmEvent.SET_UNITS:
       progress.setUnits(event.getIntValue());
       progress.setDescription(event.getDescription());
       break;
     case AlgorithmEvent.PROGRESS_VALUE:
       progress.setValue(event.getIntValue());
       progress.setDescription(event.getDescription());
       break;
     case AlgorithmEvent.MONITOR_VALUE:
       int value = event.getIntValue();
       if (value == -1) {
         // monitor.dispose();
       } else {
         // monitor.update(value);
       }
       break;
   }
 }
Beispiel #2
0
 public void valueChanged(AlgorithmEvent event) {
   logger.append(event.getDescription());
 }