JSampler
v0.8a

org.jsampler.event
Class MidiInstrumentMapEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jsampler.event.MidiInstrumentMapEvent
All Implemented Interfaces:
java.io.Serializable

public class MidiInstrumentMapEvent
extends java.util.EventObject

A semantic event which indicates MIDI instrument map changes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MidiInstrumentMapEvent(java.lang.Object source)
          Constructs a MidiInstrumentMapEvent object.
MidiInstrumentMapEvent(java.lang.Object source, MidiInstrumentEntry entry, MidiInstrument instrument)
          Constructs a MidiInstrumentMapEvent object.
 
Method Summary
 MidiInstrumentEntry getEntry()
          Returns the entry associated with the added or removed MIDI instrument.
 MidiInstrument getInstrument()
          Returns the MIDI instrument that has been added or removed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MidiInstrumentMapEvent

public MidiInstrumentMapEvent(java.lang.Object source)
Constructs a MidiInstrumentMapEvent object.

Parameters:
source - The object that originated the event.

MidiInstrumentMapEvent

public MidiInstrumentMapEvent(java.lang.Object source,
                              MidiInstrumentEntry entry,
                              MidiInstrument instrument)
Constructs a MidiInstrumentMapEvent object.

Parameters:
source - The object that originated the event.
entry - Specifies the position of a MIDI instrument in a MIDI instrument map.
instrument - The MIDI instrument that has been added or removed.
Method Detail

getEntry

public MidiInstrumentEntry getEntry()
Returns the entry associated with the added or removed MIDI instrument.

Returns:
entry associated with the added or removed MIDI instrument; null otherwise.

getInstrument

public MidiInstrument getInstrument()
Returns the MIDI instrument that has been added or removed.

Returns:
The MIDI instrument that has been added or removed; null otherwise.

JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.