/* * JSampler - a java front-end for LinuxSampler * * Copyright (C) 2005-2006 Grigor Iliev * * This file is part of JSampler. * * JSampler is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * JSampler is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with JSampler; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ package org.jsampler; import java.util.Vector; import org.jsampler.event.ListEvent; import org.jsampler.event.ListListener; /** * * @author Grigor Iliev */ public class MidiInstrumentMapList { private final Vector maps = new Vector(); private final Vector> listeners = new Vector>(); /** Creates a new instance of MidiInstrumentMapList */ public MidiInstrumentMapList() { } /** * Registers the specified listener for receiving event messages. * @param l The ListListener to register. */ public void addMidiInstrumentMapListListener(ListListener l) { listeners.add(l); } /** * Removes the specified listener. * @param l The ListListener to remove. */ public void removeMidiInstrumentMapListListener(ListListener l) { listeners.remove(l); } /** * Gets the current number of MIDI instrument maps in the list. * @return The current number of MIDI instrument maps in the list. */ public int getMidiInstrumentMapCount() { return maps.size(); } /** * Gets the MIDI instrument map at the specified position. * @param idx The index of the MIDI instrument map to be returned. * @return The MIDI instrument map at the specified position. */ public MidiInstrumentMap getMidiInstrumentMap(int idx) { return maps.get(idx); } /** * Adds the specified MIDI instrument map to the list. * @param map The MIDI instrument map to be added. * @throws IllegalArgumentException If map is null. */ public void addMidiInstrumentMap(MidiInstrumentMap map) { } /** * Removes the specified MIDI instrument map from the list. * @param idx The index of the MIDI instrument map to remove. */ public void removeMidiInstrumentMap(int idx) { } }