JSampler
v0.8a

org.jsampler
Class MidiInstrumentMapList

java.lang.Object
  extended by org.jsampler.MidiInstrumentMapList

public class MidiInstrumentMapList
extends java.lang.Object


Constructor Summary
MidiInstrumentMapList()
          Creates a new instance of MidiInstrumentMapList
 
Method Summary
 void addMidiInstrumentMap(MidiInstrumentMap map)
          Adds the specified MIDI instrument map to the list.
 void addMidiInstrumentMapListListener(ListListener<MidiInstrumentMap> l)
          Registers the specified listener for receiving event messages.
 MidiInstrumentMap getMidiInstrumentMap(int idx)
          Gets the MIDI instrument map at the specified position.
 int getMidiInstrumentMapCount()
          Gets the current number of MIDI instrument maps in the list.
 void removeMidiInstrumentMap(int idx)
          Removes the specified MIDI instrument map from the list.
 void removeMidiInstrumentMapListListener(ListListener<MidiInstrumentMap> l)
          Removes the specified listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiInstrumentMapList

public MidiInstrumentMapList()
Creates a new instance of MidiInstrumentMapList

Method Detail

addMidiInstrumentMapListListener

public void addMidiInstrumentMapListListener(ListListener<MidiInstrumentMap> l)
Registers the specified listener for receiving event messages.

Parameters:
l - The ListListener to register.

removeMidiInstrumentMapListListener

public void removeMidiInstrumentMapListListener(ListListener<MidiInstrumentMap> l)
Removes the specified listener.

Parameters:
l - The ListListener to remove.

getMidiInstrumentMapCount

public int getMidiInstrumentMapCount()
Gets the current number of MIDI instrument maps in the list.

Returns:
The current number of MIDI instrument maps in the list.

getMidiInstrumentMap

public MidiInstrumentMap getMidiInstrumentMap(int idx)
Gets the MIDI instrument map at the specified position.

Parameters:
idx - The index of the MIDI instrument map to be returned.
Returns:
The MIDI instrument map at the specified position.

addMidiInstrumentMap

public void addMidiInstrumentMap(MidiInstrumentMap map)
Adds the specified MIDI instrument map to the list.

Parameters:
map - The MIDI instrument map to be added.
Throws:
java.lang.IllegalArgumentException - If map is null.

removeMidiInstrumentMap

public void removeMidiInstrumentMap(int idx)
Removes the specified MIDI instrument map from the list.

Parameters:
idx - The index of the MIDI instrument map to remove.

JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.