Class NullMusicDevice

java.lang.Object
com.softsynth.jmsl.NullMusicDevice
All Implemented Interfaces:
Editable, MusicDevice

public class NullMusicDevice
extends java.lang.Object
implements MusicDevice
A do-nothing MusicDevice
Author:
Nick Didkovsky, email: nick@didkovsky.com, (c) 2003 Nick Didkovsky, all rights reserved.
  • Method Details

    • instance

      public static NullMusicDevice instance()
      Returns:
      singleton instance of this class
    • open

      public boolean open()
      Specified by:
      open in interface MusicDevice
    • close

      public boolean close()
      Specified by:
      close in interface MusicDevice
    • edit

      public void edit​(java.awt.Frame f)
      Description copied from interface: Editable
      Bring up a Dialog for editing, for example
      Specified by:
      edit in interface Editable
    • addEditListener

      public void addEditListener​(EditListener listener)
      Specified by:
      addEditListener in interface Editable
    • removeEditListener

      public void removeEditListener​(EditListener listener)
      Specified by:
      removeEditListener in interface Editable
    • setEditEnabled

      public void setEditEnabled​(boolean flag)
      Description copied from interface: Editable
      Set a flag. For example you might setEditEnabled(false) after first edit(), or you might hard code values for some Editable class and so want to disable editing.
      Specified by:
      setEditEnabled in interface Editable
    • getEditEnabled

      public boolean getEditEnabled()
      Specified by:
      getEditEnabled in interface Editable
      Returns:
      flag