Пример #1
0
 /**
  * Creates a new ClipPanel component for the given clip. Also attaches to the given player thread,
  * and will show a visual indication of playback position for that thread.
  *
  * @param clip
  * @param playerThread
  * @return
  */
 public static ClipPanel newInstance(Clip clip, PlayerThread playerThread) {
   ClipPanel cp = new ClipPanel(clip);
   clip.addClipDataChangeListener(cp.clipDataChangeHandler);
   playerThread.addPlaybackPositionListener(cp.clipPositionHeader);
   cp.clipPositionHeader.setPlayerThread(playerThread);
   return cp;
 }