|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsampler.Resource
org.jsampler.OrchestraInstrument
public class OrchestraInstrument
| Constructor Summary | |
|---|---|
OrchestraInstrument()
Creates a new instance of OrchestraInstrument. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDnDString()
Gets a string representation of this instrument appropriate for Drag & Drop operations. |
java.lang.String |
getEngine()
Gets the engine to be used for loading this instrument. |
java.lang.String |
getFilePath()
Returns the absolute pathname of the instrument location. |
java.lang.String |
getFormatFamily()
|
java.lang.String |
getFormatVersion()
|
int |
getInstrumentIndex()
Returns the index of the instrument in the instrument file. |
static boolean |
isDnDString(java.lang.String s)
Determines whether the specified string is a Drag & Drop representation of an instrument. |
void |
readObject(org.w3c.dom.Node node)
Reads and sets the instrument properties by the supplied node. |
void |
setDnDString(java.lang.String s)
Sets the instrument properties provided by the specified Drag & Drop string representation. |
void |
setEngine(java.lang.String engine)
Sets the engine to be used for loading this instrument. |
void |
setFilePath(java.lang.String path)
Sets the absolute pathname of the instrument location. |
void |
setInstrumentIndex(int idx)
Sets the index of the instrument in the instrument file. |
java.lang.String |
toString()
Returns the name of this instrument. |
void |
writeObject(org.w3c.dom.Document doc,
org.w3c.dom.Node node)
Writes the instrument properties to the specified node of document doc. |
| Methods inherited from class org.jsampler.Resource |
|---|
addChangeListener, fireChangeEvent, getDescription, getName, removeChangeListener, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OrchestraInstrument()
OrchestraInstrument.
| Method Detail |
|---|
public java.lang.String getFilePath()
public void setFilePath(java.lang.String path)
path - Specifies the absolute pathname of the instrument location.public int getInstrumentIndex()
public void setInstrumentIndex(int idx)
idx - The index of the instrument in the instrument file.public java.lang.String getEngine()
public void setEngine(java.lang.String engine)
public java.lang.String getFormatFamily()
public java.lang.String getFormatVersion()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDnDString()
isDnDString(java.lang.String)public void setDnDString(java.lang.String s)
s - String providing Drag & Drop string representation of an instrument.
java.lang.IllegalArgumentException - If the specified string is not
a Drag & Drop string representation of an instrument.getDnDString()public static boolean isDnDString(java.lang.String s)
s - The string to be checked.
true if the specified string is
a Drag & Drop representation of an instrument, false otherwise.public void readObject(org.w3c.dom.Node node)
node.
node - The node providing the instrument properties.
java.lang.IllegalArgumentException - If an error occurs while
reading the instrument properties.
public void writeObject(org.w3c.dom.Document doc,
org.w3c.dom.Node node)
doc.
doc - The document containing node.node - Specifies the node where the instrument properties
should be written.
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||