|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MidiDeviceModel
A data model for a MIDI input 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. |
| Method Detail |
|---|
void addMidiDeviceListener(MidiDeviceListener l)
l - The MidiDeviceListListener to register.void removeMidiDeviceListener(MidiDeviceListener l)
l - The MidiDeviceListener to remove.int getDeviceId()
MidiInputDevice getDeviceInfo()
MidiInputDevice instance providing
the current settings of the MIDI device represented by this model.void setDeviceInfo(MidiInputDevice device)
device - The new MIDI device settings.boolean isActive()
true if the device is enabled and false otherwise.void setActive(boolean active)
active - If true the MIDI device is enabled,
else the device is disabled.void setBackendActive(boolean active)
active - If true the MIDI device is enabled,
else the device is disabled.void setBackendDeviceParameter(Parameter prm)
prm - The parameter to be set.void setBackendPortCount(int ports)
ports - The new number of ports.
void setBackendPortParameter(int port,
Parameter prm)
port - 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 | |||||||||