Exemplo n.º 1
0
 public void activate() {
   active = true;
   microphone.flush();
   speaker.flush();
   speaker.start();
   blocker.release();
   microphone.start();
   microphone.flush();
 }
Exemplo n.º 2
0
  public void actionPerformed(ActionEvent ev) {
    String action = ev.getActionCommand();

    if (action.equals("ok")) {
      cancelled = false;
      if (dialog != null) {
        dialog.dispose();
      }
      blocker.release();
    } else if (action.equals("cancel")) {
      cancelled = true;
      if (dialog != null) {
        dialog.dispose();
      }
      blocker.release();
    } else if (setType(action)) {
    } else if (setBPP(action)) {
    } else {
    }
  }
Exemplo n.º 3
0
 public ImageTypeConvertOp activate() {
   display();
   try {
     blocker.acquire();
   } catch (InterruptedException ie) {
     return null;
   }
   if (cancelled) {
     return null;
   }
   return new ImageTypeConvertOp(params);
 }
Exemplo n.º 4
0
 public void pickup() {
   pickup.release();
 }