示例#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;
   }
 }
示例#2
0
文件: DAMGUI.java 项目: SamGG/mev-tm4
 public void valueChanged(AlgorithmEvent event) {
   logger.append(event.getDescription());
 }