net.charlesames.music.ensemble
Class TuningElementDegree
java.lang.Object
net.charlesames.utility.common.Disposable
net.charlesames.utility.entity.Entity
net.charlesames.utility.entity.WriteableEntity
net.charlesames.music.ensemble.EnsembleEntity
net.charlesames.music.ensemble.TuningElement
net.charlesames.music.ensemble.TuningElementDegree
- All Implemented Interfaces:
- EntityContainer
public class TuningElementDegree
- extends TuningElement
- Author:
- Charles Ames
| Methods inherited from class net.charlesames.utility.entity.WriteableEntity |
check, 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, wipe |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TuningElementDegree
public TuningElementDegree(TuningMapChromatic container,
Degree degree)
- Constructor for
TuningElementDegree instances.
- Parameters:
container - The TuningMapChromatic which contains this element.degree - The Degree to which this element maps a cents displacement.
getDegree
public Degree getDegree()
- Get the
Degree for this tuning element.
- Returns:
- The
Degree for this tuning element.
fromXmlNode
public static TuningElementDegree fromXmlNode(org.w3c.dom.Element element,
TuningMapChromatic container)
- Create a new Choir instance and fill it with loaded data.
- Parameters:
element - The XML element that provides the Choir datacontainer - The Choir or Ensemble which will contain the new Choir.
- Returns:
- The newly created Choir instance.
checkCents
public void checkCents(int cents)
- Description copied from class:
TuningElement
- Check the indicated cents value.
- Specified by:
checkCents in class TuningElement
- Parameters:
cents - The indicated cents value.
createXmlSpec
public static XmlSpec createXmlSpec()
- Create an XML specification for the
TuningElementDegree class.
- Returns:
- The newly created
XmlSpec instance.
- Throws:
java.lang.RuntimeException - when an XmlSpec instance already exists for the TuningElementDegree class.
equals
public boolean equals(EnsembleEntity other)
- Description copied from class:
EnsembleEntity
- Check if this entity has the same class and content as another entity.
- Overrides:
equals in class TuningElement
- Parameters:
other - The other entity.
- Returns:
- True if the two entities have the same class and content; false otherwise.