|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrchestraModel
A data model representing an orchestra.
| Method Summary | |
|---|---|
void |
addInstrument(OrchestraInstrument instr)
Adds the specified instrument to this orchestra. |
void |
addOrchestraListener(OrchestraListener l)
Registers the specified listener for receiving event messages. |
java.lang.String |
getDescription()
Gets a brief description about this orchestra. |
OrchestraInstrument |
getInstrument(int idx)
Gets the instrument at the specified position. |
int |
getInstrumentCount()
Gets the current number of instruments in this orchestra. |
int |
getInstrumentIndex(OrchestraInstrument instr)
Gets the position of the specified instrument in this orchestra. |
java.lang.String |
getName()
Gets the name of this orchestra. |
void |
insertInstrument(OrchestraInstrument instr,
int idx)
Inserts the specified instrument at the specified position. |
void |
moveInstrumentAtBottom(OrchestraInstrument instr)
Moves the specified instrument at the bottom of the instrument list. |
void |
moveInstrumentDown(OrchestraInstrument instr)
Moves the specified instrument one position down in the instrument list. |
void |
moveInstrumentOnTop(OrchestraInstrument instr)
Moves the specified instrument one the top of the instrument list. |
void |
moveInstrumentUp(OrchestraInstrument instr)
Moves the specified instrument one position up in the instrument list. |
void |
readObject(org.w3c.dom.Node node)
Reads and sets the content of this orchestra provided by node. |
void |
removeInstrument(int idx)
Removes the specified instrument from this orchestra. |
boolean |
removeInstrument(OrchestraInstrument instr)
Removes the specified instrument from this orchestra. |
void |
removeOrchestraListener(OrchestraListener l)
Removes the specified listener. |
void |
setDescription(java.lang.String desc)
Sets a description about this orchestra. |
void |
setName(java.lang.String name)
Sets the name of this orchestra. |
void |
writeObject(org.w3c.dom.Document doc,
org.w3c.dom.Node node)
Writes the content of this orchestra to the specified node of document doc. |
| Method Detail |
|---|
void addOrchestraListener(OrchestraListener l)
l - The OrchestraListener to register.void removeOrchestraListener(OrchestraListener l)
l - The OrchestraListener to remove.java.lang.String getName()
void setName(java.lang.String name)
name - The new name of this orchestra.java.lang.String getDescription()
void setDescription(java.lang.String desc)
desc - A brief description about this orchestra.int getInstrumentCount()
OrchestraInstrument getInstrument(int idx)
idx - The index of the instrument to be returned.
void addInstrument(OrchestraInstrument instr)
instr - The instrument to be added.
void insertInstrument(OrchestraInstrument instr,
int idx)
instr - The instrument to be inserted.idx - The position of the instrument.
java.lang.IllegalArgumentException - If instr is null.
java.lang.ArrayIndexOutOfBoundsException - If the specified index is invalid.void removeInstrument(int idx)
idx - The index of the instrument to remove.boolean removeInstrument(OrchestraInstrument instr)
instr - The instrument to remove.
true if the specified instrument was in this orchestra,
false otherwise.int getInstrumentIndex(OrchestraInstrument instr)
instr - The instrument whose index should be returned.
instr is null or
the orchestra does not contain the specified instrument.void moveInstrumentOnTop(OrchestraInstrument instr)
instr is null,
the orchestra does not contain the specified instrument,
or if the instrument is already on the top.
instr - The instrument to move on top.void moveInstrumentUp(OrchestraInstrument instr)
instr is null,
the orchestra does not contain the specified instrument,
or if the instrument is already on the top.
instr - The instrument to move up.void moveInstrumentDown(OrchestraInstrument instr)
instr is null,
the orchestra does not contain the specified instrument,
or if the instrument is already at the bottom.
instr - The instrument to move down.void moveInstrumentAtBottom(OrchestraInstrument instr)
instr is null,
the orchestra does not contain the specified instrument,
or if the instrument is already at the bottom.
instr - The instrument to move at bottom.void readObject(org.w3c.dom.Node node)
node.
node - The node providing the content of this orchestra.
java.lang.IllegalArgumentException - If an error occurs while
reading the content of this orchestra.
void writeObject(org.w3c.dom.Document doc,
org.w3c.dom.Node node)
doc.
doc - The document containing node.node - Specifies the node where the content of this orchestra
should be written.
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||