Class Recorder

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class Recorder extends Player
JavaSound Recorder.
Version:
$Revision: 1.2 $
Author:
Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
See Also:
  • Field Details

  • Constructor Details

    • Recorder

      public Recorder(String file)
      Build a Recorder.
      Parameters:
      file -
  • Method Details

    • main

      public static void main(String[] args)
      Command Line entrance.
      Parameters:
      args -
    • init

      public void init()
      Initialize the Player Component.
      Overrides:
      init in class Player
    • getAudioStream

      protected InputStream getAudioStream() throws IOException
      Returns an InputSteam containing the Audio to playback.
      Overrides:
      getAudioStream in class Player
      Returns:
      an InputSteam containing the Audio to playback.
      Throws:
      IOException
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Process Actions when button are pressed. Implemented from ActionListener interface.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class Player
      Parameters:
      e -
    • stopIt

      public void stopIt()
      Overrides:
      stopIt in class Player
    • playIt

      public void playIt()
      Overrides:
      playIt in class Player
    • pauseIt

      public void pauseIt()
      Description copied from class: Player
      Pause
      Overrides:
      pauseIt in class Player
    • recordIt

      public void recordIt()
    • getProgress

      protected int getProgress()
      Return the progress of the playback.
      Overrides:
      getProgress in class Player
      Returns:
      the progress of the playback.
    • createButtonPanel

      protected void createButtonPanel()
      Create the ButtonPanel for the recorder. The recorder button panel that should look something like this:
       
       +--------------------------------+
       | +------+ +----+ +-----+ +----+ |
       | |record| |play| |pause| |stop| |  Button Panel
       | +------+ +----+ +-----+ +----+ |
       +--------------------------------+
       
      Overrides:
      createButtonPanel in class Player