com.softsynth.jmsl
Class NullMusicDevice

java.lang.Object
  extended by 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: didkovn@mail.rockefeller.edu, (c) 2003 Nick Didkovsky, all rights reserved.

Method Summary
 void addEditListener(EditListener listener)
           
 void close()
           
 void edit(java.awt.Frame f)
          Bring up a Dialog for editing, for example
 boolean getEditEnabled()
           
static NullMusicDevice instance()
           
 void open()
           
 void removeEditListener(EditListener listener)
           
 void setEditEnabled(boolean flag)
          Set a flag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

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

open

public void open()
Specified by:
open in interface MusicDevice

close

public void 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