|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsampler.DefaultMidiDeviceModel
public class DefaultMidiDeviceModel
The Default implementation of the MidiDeviceModel interface.
| Constructor Summary | |
|---|---|
DefaultMidiDeviceModel(MidiInputDevice midiDevice)
Creates a new instance of DefaultMidiDeviceModel using the
specified non-null MIDI device. |
|
| Method Summary | |
|---|---|
void |
addMidiDeviceListener(MidiDeviceListener l)
Registers the specified listener to be notified when the settings of the MIDI device are changed. |
int |
getDeviceId()
Gets the numerical ID of this MIDI device. |
MidiInputDevice |
getDeviceInfo()
Gets the current settings of the MIDI device represented by this model. |
boolean |
isActive()
Determines whether the MIDI device is active. |
void |
removeMidiDeviceListener(MidiDeviceListener l)
Removes the specified listener. |
void |
setActive(boolean active)
Sets whether the MIDI device is enabled or disabled. |
void |
setBackendActive(boolean active)
Schedules a new task for enabling/disabling the MIDI device. |
void |
setBackendDeviceParameter(Parameter prm)
Schedules a new task for altering a specific setting of the MIDI input device. |
void |
setBackendPortCount(int ports)
Schedules a new task for changing the port number of the MIDI device. |
void |
setBackendPortParameter(int port,
Parameter prm)
Schedules a new task for altering a specific setting of the specified MIDI input port. |
void |
setDeviceInfo(MidiInputDevice device)
Updates the settings of the MIDI device represented by this model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMidiDeviceModel(MidiInputDevice midiDevice)
DefaultMidiDeviceModel using the
specified non-null MIDI device.
midiDevice - A MidiInputDevice instance providing the current
settings of the MIDI device which will be represented by this model.
java.lang.IllegalArgumentException - If midiDevice is null.| Method Detail |
|---|
public void addMidiDeviceListener(MidiDeviceListener l)
addMidiDeviceListener in interface MidiDeviceModell - The MidiDeviceListener to register.public void removeMidiDeviceListener(MidiDeviceListener l)
removeMidiDeviceListener in interface MidiDeviceModell - The MidiDeviceListener to remove.public int getDeviceId()
getDeviceId in interface MidiDeviceModelpublic MidiInputDevice getDeviceInfo()
getDeviceInfo in interface MidiDeviceModelMidiInputDevice instance providing
the current settings of the MIDI device represented by this model.public void setDeviceInfo(MidiInputDevice device)
setDeviceInfo in interface MidiDeviceModeldevice - The new MIDI device settings.public void setActive(boolean active)
setActive in interface MidiDeviceModelactive - If true the MIDI device is enabled,
else the device is disabled.public boolean isActive()
isActive in interface MidiDeviceModeltrue if the device is enabled and false otherwise.public void setBackendActive(boolean active)
setBackendActive in interface MidiDeviceModelactive - If true the MIDI device is enabled,
else the device is disabled.public void setBackendDeviceParameter(Parameter prm)
setBackendDeviceParameter in interface MidiDeviceModelprm - The parameter to be set.public void setBackendPortCount(int ports)
setBackendPortCount in interface MidiDeviceModelports - The new number of ports.
public void setBackendPortParameter(int port,
Parameter prm)
setBackendPortParameter in interface MidiDeviceModelport - The port number.prm - The parameter to be set.
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||