예제 #1
0
  /**
   * Method to handle the line event update
   *
   * @param e the line event
   */
  public void update(LineEvent e) {

    if (e.getType().equals(LineEvent.Type.CLOSE)) {
      playBtn.setEnabled(true);

      stopBtn.setEnabled(false);
      pauseBtn.setEnabled(false);
      if (wavePanel.moreZoomInScope()) {
        playSelectionBtn.setEnabled(true);

        zoomInBtn.setEnabled(true);
      }
      if (wavePanel.moreZoomOutScope()) zoomOutBtn.setEnabled(true);
      isPlaying = false;
      playSelClicked = 0;
    }
  }