|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.common.Disposable
net.charlesames.utility.entity.Entity
net.charlesames.utility.entity.WriteableEntity
net.charlesames.music.ensemble.EnsembleEntity
net.charlesames.music.ensemble.NoteListInstrument
public class NoteListInstrument
The NoteListInstrument class defines note-list instrument ID's and associates these
with EnsembleContour instances.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
EnsembleEntity.AttributeTable |
| Method Summary | |
|---|---|
boolean |
check(HtmlBuilder builder)
Check this component for errors and inconsistencies |
void |
checkNewParameterID(int id)
Check if the indicated id is suitable for a new NoteListParameter instance. |
void |
checkNewParameterName(java.lang.String name)
Check if the indicated name is suitable for a new NoteListParameter instance. |
void |
clear()
Clear the contents of this thing. |
void |
conformToFormat(NoteListFormat oldFormat,
NoteListFormat newFormat)
|
NoteListParameter |
createParameter(int id,
java.lang.String name)
Create a new NoteListParameter. |
static XmlSpec |
createXmlSpec()
Create an XML specification for the NoteListInstrument class. |
void |
disableParameterEditing(NoteListFormat noteListFormat)
Make format-defined parameters unmodifiable. |
void |
enableParameterEditing(NoteListFormat noteListFormat)
Make format-defined parameters modifiable. |
boolean |
equals(EnsembleEntity other)
Check if this entity has the same class and content as another entity. |
static NoteListInstrument |
fromXmlNode(org.w3c.dom.Element element,
Ensemble ensemble)
Create a new NoteListInstrument instance and fill it with loaded data. |
int |
getDefaultParameterID()
Get the next unused identifier for new NoteListParameter instances. |
int |
getMaxParameterID()
Get the highest parameter number present in instrument definition. |
java.util.SortedMap<java.lang.Integer,NoteListParameter> |
getParametersByID()
Get this instrument's parameter list. |
java.util.SortedMap<java.lang.String,NoteListParameter> |
getParametersByName()
Get this instrument's parameter list. |
java.lang.String |
getPath()
Return a description of this entity and its containers. |
void |
removeParameter(int id)
Removes a parameter with the indicated id. |
void |
removeParameter(java.lang.String name)
Removes a parameter with the indicated name. |
void |
resequenceParameters()
Rebuild the sequence of NoteListParameter id's so that the first id is 1 and the sequence proceeds without gaps. |
boolean |
setID(int id)
Setter for the ID property. |
boolean |
setName(java.lang.String name)
Setter for the Name property. |
void |
shiftParameterDown(int id)
Move the parameter down in the parameter list (increment the parameter's id). |
void |
shiftParametersDown(int id,
int increment)
Shift NoteListParameterLink instances down as a block, beginning with the indicated id. |
void |
shiftParameterUp(int id)
Move the parameter up in the parameter list (decrement the parameter's id). |
java.lang.String |
toString()
|
void |
wipe()
Clear all data in this Entity instance. |
| Methods inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
buildDescription, copyToClipboard, createIndentCell, createXmlSpec, describeFeature, getContainer, getEnsemble, logError, predecessor |
| Methods inherited from class net.charlesames.utility.entity.WriteableEntity |
|---|
clearXmlSpecs, createXmlSpec, getTagName, getXmlData, getXmlSpec, getXmlSpec, initializeXsd, isPersistent, logError, logError, makeDirty, putXmlData, save, setPersistent, setStatus, toXmlNode |
| Methods inherited from class net.charlesames.utility.entity.Entity |
|---|
decrementReferenceCount, dereferenceHandle, dispose, equals, getHandle, getID, getName, getReferenceCount, getStatus, getText, hasContainer, incrementReferenceCount, isModifiable, methodHasOverride, predecessor, resequenceEntities, setContainer, setModifiable, shiftEntitiesDown, shiftEntityDown, shiftEntityUp, successor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void wipe()
EntityEntity instance.
wipe in class Entitypublic boolean setID(int id)
EntityID property.
setID in class WriteableEntityid - The intended ID value.
ID change actually happened; false otherwise.public boolean setName(java.lang.String name)
EntityName property.
setName in class WriteableEntityname - The intended Name value.
Name change actually happened; false otherwise.public java.lang.String toString()
toString in class EnsembleEntitypublic boolean check(HtmlBuilder builder)
check in class WriteableEntitybuilder - Accumulates an HTML formatted record of each error or inconsistency found.
public java.lang.String getPath()
Entity
getPath in interface EntityContainergetPath in class Entitypublic java.util.SortedMap<java.lang.Integer,NoteListParameter> getParametersByID()
NoteListParameter instances, sorted by id.public java.util.SortedMap<java.lang.String,NoteListParameter> getParametersByName()
NoteListParameter instances, sorted by name.
public final NoteListParameter createParameter(int id,
java.lang.String name)
NoteListParameter.
id - The new parameter id. May not already be used upwards or downwards in the ensemble component hierarchy.name - The new parameter name. May not already be used upwards or downwards in the ensemble component hierarchy.
NoteListParameter instance.
java.lang.IllegalArgumentException - when the parameter ID is already used.public void checkNewParameterID(int id)
NoteListParameter instance.
id - The indicated id.public void checkNewParameterName(java.lang.String name)
NoteListParameter instance.
name - The indicated name.public final void removeParameter(int id)
id - The id of the parameter to be removed.
java.lang.IllegalArgumentException - when no parameter has the indicated id.public final void removeParameter(java.lang.String name)
name - The name of the parameter to be removed.
java.lang.IllegalArgumentException - when no parameter has the indicated id.
public void conformToFormat(NoteListFormat oldFormat,
NoteListFormat newFormat)
oldFormat - newFormat - public void resequenceParameters()
NoteListParameter id's so that the first id is 1 and the sequence proceeds without gaps.
public void shiftParameterUp(int id)
id - The present id of the parameter, to be changed.public void shiftParameterDown(int id)
id - The present id of the parameter, to be changed.
public void shiftParametersDown(int id,
int increment)
NoteListParameterLink instances down as a block, beginning with the indicated id.
id - The indicated id.increment - The number of positions to shift.public void clear()
public int getDefaultParameterID()
NoteListParameter instances.
NoteListParameter instances.public int getMaxParameterID()
public static NoteListInstrument fromXmlNode(org.w3c.dom.Element element,
Ensemble ensemble)
NoteListInstrument instance and fill it with loaded data.
element - The XML element that provides the NoteListInstrument dataensemble - The Ensemble which will contain the new NoteListInstrument.
NoteListInstrument instance.public static XmlSpec createXmlSpec()
NoteListInstrument class.
XmlSpec instance.
java.lang.RuntimeException - when an XmlSpec instance already exists for the NoteListInstrument class.public boolean equals(EnsembleEntity other)
EnsembleEntity
equals in class EnsembleEntityother - The other entity.
public void enableParameterEditing(NoteListFormat noteListFormat)
noteListFormat - The NoteListFormat instance which defines parameters.public void disableParameterEditing(NoteListFormat noteListFormat)
noteListFormat - The NoteListFormat instance which defines parameters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||