code: public void setWaveformPreview(WaveformPreview preview, int duration, CueList cueList) {
          updateWaveform(preview);
          this.duration.set(duration);
          this.cueList.set(cueList);
          clearPlaybackState();
          repaint();
      }
docs: Change the waveform preview being drawn. This will be quickly overruled if a player is being monitored, but
  can be used in other contexts.
  
  @param preview the waveform preview to display
  @param duration the playback duration, in seconds, of the track whose waveform we are drawing, so we can
  translate times into positions
  @param cueList the hot cues and memory points stored for the track, if any, so we can draw them