Interface MidiSynthManager
- All Known Implementing Classes:
DefaultMidiSynthManager
public interface MidiSynthManager
Manage MidiSynth instances.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty change event fired when a MidiSynth is added or removed. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddMidiSynth(MidiSynth midiSynth) Add a MidiSynth.voidAdd PropertyChangeListener.static MidiSynthManagerGet the default implementation in the global lookup, or if not found return the DefaultMidiSynthManager instance.getMidiSynth(String name) Search a MidiSynth with the specified name.The list of MidiSynths.getMidiSynths(Predicate<MidiSynth> tester) The list of MidiSynths which match the specified criteria.static MidiSynthloadFromResource(Class clazz, String insResourcePath) Read one MidiSynth from an JJazzLab internal .ins resource file.booleanremoveMidiSynth(MidiSynth midiSynth) Remove the specified MidiSynth.voidRemove PropertyChangeListener.
-
Field Details
-
PROP_MIDISYNTH_LIST
Property change event fired when a MidiSynth is added or removed.If added: oldValue=null, newValue=added MidiSynth
If removed: oldValue=removed MidiSynth, newValue=null- See Also:
-
-
Method Details
-
getDefault
Get the default implementation in the global lookup, or if not found return the DefaultMidiSynthManager instance.- Returns:
-
getMidiSynth
-
getMidiSynths
-
getMidiSynths
-
addMidiSynth
Add a MidiSynth.- Parameters:
midiSynth-- Returns:
- True if midiSynth was successfully added, false if midiSynth was already referenced by the MidiSynthManager.
-
removeMidiSynth
Remove the specified MidiSynth.- Parameters:
midiSynth-- Returns:
-
addPropertyChangeListener
Add PropertyChangeListener.- Parameters:
listener-
-
removePropertyChangeListener
Remove PropertyChangeListener.- Parameters:
listener-
-
loadFromResource
Read one MidiSynth from an JJazzLab internal .ins resource file.- Parameters:
clazz-insResourcePath- Resource path relative to clazz. Must contain only 1 MidiSynth- Returns:
- Can't be null
- Throws:
IllegalStateException- If resource could not be read
-