Class OscilloscopeDispatcher.SoundClip

java.lang.Object
org.eclipse.nebula.widgets.oscilloscope.multichannel.OscilloscopeDispatcher.SoundClip
Enclosing class:
OscilloscopeDispatcher

public class OscilloscopeDispatcher.SoundClip
extends java.lang.Object
Plays a sound clip.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) javax.sound.sampled.Clip clip  
    (package private) java.lang.String oldFile  
  • Constructor Summary

    Constructors 
    Constructor Description
    SoundClip()  
  • Method Summary

    Modifier and Type Method Description
    javax.sound.sampled.Clip getClip()
    Returns the clip so you can control it.
    void playClip​(java.io.File file, int loopCount)
    Creates a clip from the passed sound file and plays it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • clip

      javax.sound.sampled.Clip clip
    • oldFile

      java.lang.String oldFile
  • Constructor Details

  • Method Details

    • getClip

      public javax.sound.sampled.Clip getClip()
      Returns the clip so you can control it.
      Returns:
      the Clip
    • playClip

      public void playClip​(java.io.File file, int loopCount)
      Creates a clip from the passed sound file and plays it. If the clip is currently playing then the method returns, get the clip with getClip() to control it.
      Parameters:
      file -
      loopCount -