Class FavoriteInstruments

java.lang.Object
org.jjazz.midi.api.synths.FavoriteInstruments

public class FavoriteInstruments extends Object
Store favorite instruments as preferences.
  • Field Details

    • PROP_FAVORITE_INSTRUMENT

      public static String PROP_FAVORITE_INSTRUMENT
      oldValue=instrument if removed, newValue=instrument if added.
  • Method Details

    • getInstance

      public static FavoriteInstruments getInstance()
    • addInstrument

      public boolean addInstrument(Instrument ins)
      Add a favorite instrument.
      Parameters:
      ins -
      Returns:
      True if added successfully (ins was not already present).
    • removeInstrument

      public boolean removeInstrument(Instrument ins)
      Remove a favorite instrument.
      Parameters:
      ins -
      Returns:
      True if removed successfully (ins was present).
    • contains

      public boolean contains(Instrument ins)
    • getInstruments

      public List<Instrument> getInstruments()
      All the favorite instruments.
      Returns:
    • getInstruments

      public List<Instrument> getInstruments(MidiSynth synth)
      The favorite instruments for the specified MidiSynth.
      Parameters:
      synth -
      Returns:
    • addPropertyListener

      public void addPropertyListener(PropertyChangeListener l)
    • removePropertyListener

      public void removePropertyListener(PropertyChangeListener l)