|
||||||||||
| 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.ContainerOfInstrumentLinks
public abstract class ContainerOfInstrumentLinks
The abstract ContainerOfInstrumentLinks class implements functionality shared between ContainerOfInstrumentLinks and UnpitchedSound objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
EnsembleEntity.AttributeTable |
| Constructor Summary | |
|---|---|
ContainerOfInstrumentLinks(EnsembleEntity container,
int id,
java.lang.String name)
Constructor for {link ContainerOfInstrumentLinks} instances. |
|
| Method Summary | |
|---|---|
NoteListInstrumentLink |
addInstrumentLink(int id)
Add a NoteListInstrumentLink with the indicated sequence number. |
boolean |
check(HtmlBuilder builder)
Check this component for errors and inconsistencies |
void |
checkNewInstrumentLinkID(int id)
Check if the indicated sequence number is suitable for a new NoteListInstrumentLink instance. |
boolean |
equals(EnsembleEntity other)
Check if this entity has the same class and content as another entity. |
int |
getDefaultInstrumentLinkID()
Get the next unused instrument link id. |
abstract EnsembleInstrument |
getInstrument()
Getter for the EnsembleInstrument which either this is or this is contained by. |
java.util.SortedMap<java.lang.Integer,NoteListInstrumentLink> |
getInstrumentLinks()
Get the assigned note list instrument. |
boolean |
isUnpitched()
Getter for the Unpitched property. |
void |
removeInstrumentLink(int id)
Remove the link with the indicated sequence number. |
void |
resequenceInstrumentLinks()
Rebuild the sequence of NoteListInstrumentLink id's so that the first id is 1 and the sequence proceeds without gaps. |
void |
shiftInstrumentLinkDown(int id)
Move a specified NoteListInstrumentLink down within the collection (i.e. |
void |
shiftInstrumentLinksDown(int id,
int increment)
Shift NoteListInstrumentLink instances down as a block, beginning with the indicated id. |
void |
shiftInstrumentLinkUp(int id)
Move a specified NoteListInstrumentLink up within the collection (i.e. |
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, toString |
| Methods inherited from class net.charlesames.utility.entity.WriteableEntity |
|---|
clearXmlSpecs, createXmlSpec, getTagName, getXmlData, getXmlSpec, getXmlSpec, initializeXsd, isPersistent, logError, logError, makeDirty, putXmlData, save, setID, setName, setPersistent, setStatus, toXmlNode |
| Methods inherited from class net.charlesames.utility.entity.Entity |
|---|
decrementReferenceCount, dereferenceHandle, dispose, equals, getHandle, getID, getName, getPath, 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 |
| Constructor Detail |
|---|
public ContainerOfInstrumentLinks(EnsembleEntity container,
int id,
java.lang.String name)
container - The EnsembleEntity that will contain this instrument.name - The instrument name. Must be unique.id - The instrument identifier. Must be unique.| Method Detail |
|---|
public abstract EnsembleInstrument getInstrument()
EnsembleInstrument which either this is or this is contained by.
EnsembleInstrument which either this is or this is contained by.public java.util.SortedMap<java.lang.Integer,NoteListInstrumentLink> getInstrumentLinks()
public boolean isUnpitched()
Unpitched property.
public NoteListInstrumentLink addInstrumentLink(int id)
NoteListInstrumentLink with the indicated sequence number.
id - The indicated sequence number, which controls the order in which note statements are generated.
NoteListInstrumentLink instance.public void removeInstrumentLink(int id)
id - The indicated id.public boolean check(HtmlBuilder builder)
check in class WriteableEntitybuilder - Accumulates an HTML formatted record of each error or inconsistency found.
public void wipe()
EntityEntity instance.
wipe in class Entitypublic int getDefaultInstrumentLinkID()
public void checkNewInstrumentLinkID(int id)
NoteListInstrumentLink instance.
id - The indicated sequence number.public void resequenceInstrumentLinks()
NoteListInstrumentLink id's so that the first id is 1 and the sequence proceeds without gaps.
public void shiftInstrumentLinkUp(int id)
NoteListInstrumentLink up within the collection (i.e. decrement its id).
id - The current chroma idpublic void shiftInstrumentLinkDown(int id)
NoteListInstrumentLink down within the collection (i.e. increment its id).
id - The current chroma id
public void shiftInstrumentLinksDown(int id,
int increment)
NoteListInstrumentLink instances down as a block, beginning with the indicated id.
id - The indicated id.increment - The number of positions to shift.public boolean equals(EnsembleEntity other)
EnsembleEntity
equals in class EnsembleEntityother - The other entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||