|
||||||||||
| 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.EnsembleContour
public class EnsembleContour
The EnsembleContour class contains information about ScoreContour
Each EnsembleContour instance is a child of a EnsembleChoir.
Each ScoreContour instance within a Score has
A EnsembleContour in an Ensemble describes the properties of a ScoreContour within a Score.
The Index property of a EnsembleContour corresponds uniquely to the ID property of a ScoreContour.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
EnsembleEntity.AttributeTable |
| Constructor Summary | |
|---|---|
EnsembleContour(EnsembleEntity container,
java.lang.String name,
int id,
CalculationMode calculationMode)
Constructor for EnsembleContour instances. |
|
| Method Summary | |
|---|---|
MidiControl |
addMidiControl(TypeOfMidiControl controlType)
Create a new MidiControl instance. |
void |
checkDefaultValue(double value)
Check if the indicated value is suitable as an EnsembleContour default. |
void |
checkMaxExpValue(double value)
Check if the indicated value is suitable as an EnsembleContour MaxExpValue |
void |
checkMaxValue(double value)
Check if the indicated value is suitable as an EnsembleContour maximum. |
void |
checkMinExpValue(double value)
Check if the indicated value is suitable as an EnsembleContour MinExpValue |
void |
checkMinValue(double value)
Check if the indicated is suitable as a EnsembleContour minimum. |
double |
convertLinearToExponential(double value)
Convert a linearly-evolving value to an exponentially evolving value. |
boolean |
convertsLinearToExponential()
Test if this contour converts linearly-evolving values into exponentially evolving values. |
static XmlSpec |
createXmlSpec()
Create an XML specification for the EnsembleChoir class. |
boolean |
equals(EnsembleEntity other)
Check if this entity has the same class and content as another entity. |
static EnsembleContour |
fromXmlNode(org.w3c.dom.Element element,
ContainerOfChoirsAndContours container)
Create a new EnsembleContour instance and fill it with loaded data. |
CalculationMode |
getCalculationMode()
Get the value of the CalculationMode property. |
ContainerOfChoirsAndContours |
getContainer()
Getter for the Container property. |
double |
getDefaultValue()
|
int |
getIndex()
Get the unique contour identifier. |
double |
getMaxExpValue()
The MaxExpValue property is meaningful only if the CalculationMode is LINEAR. |
double |
getMaxValue()
|
java.util.SortedMap<java.lang.String,MidiControl> |
getMidiControls()
|
double |
getMinExpValue()
The MinExpValue property is meaningful only if the CalculationMode is LINEAR. |
double |
getMinValue()
|
java.lang.String |
getPath()
Return a description of this entity and its containers. |
boolean |
hasMaxExpValue()
Test if the contour has a viable maximum for converting linear values to exponential values. |
boolean |
hasMinExpValue()
Test if the contour has a viable minimum for converting linear values to exponential values. |
boolean |
isGenerateRamps()
Get the flag to generate ramps. |
boolean |
isMaxExclusive()
|
boolean |
isMinExclusive()
|
void |
setDefaultValue(double defaultValue)
|
void |
setGenerateRamps(boolean generateRamps)
Set the flag to generate ramps. |
boolean |
setID(int id)
Setter for the ID property. |
void |
setIndex(int index)
Set the unique contour identifier. |
void |
setMaxExclusive(boolean maxExclusive)
|
void |
setMaxExpValue(double maxExpValue)
The MaxExpValue property is meaningful only if the CalculationMode is LINEAR. |
void |
setMaxValue(double maxValue)
Set the maximum above which segment origins and goals may not ascend. |
void |
setMinExclusive(boolean minExclusive)
|
void |
setMinExpValue(double minExpValue)
The MinExpValue property is meaningful only if the CalculationMode is LINEAR. |
void |
setMinValue(double minValue)
|
boolean |
setName(java.lang.String name)
Setter for the Name property. |
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, getEnsemble, logError, predecessor |
| Methods inherited from class net.charlesames.utility.entity.WriteableEntity |
|---|
check, 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 |
| Constructor Detail |
|---|
public EnsembleContour(EnsembleEntity container,
java.lang.String name,
int id,
CalculationMode calculationMode)
EnsembleContour instances.
container - Must be a EnsembleChoir.name - The new contour name. Must not be used by any existing EnsembleContour in the current branch of the ensemble component hierarchy.id - The new contour id. Must not be used by any existing EnsembleContour in the current branch of the ensemble component hierarchy.calculationMode - This determines how the value of a contour is calculated at any given ordinate using the contour's segment data.| Method Detail |
|---|
public ContainerOfChoirsAndContours getContainer()
EntityContainer property.
getContainer in class EnsembleEntityContainer value.public boolean setName(java.lang.String name)
EntityName property.
setName in class WriteableEntityname - The intended Name value.
Name change actually happened; false otherwise.public boolean setID(int id)
EntityID property.
setID in class WriteableEntityid - The intended ID value.
ID change actually happened; false otherwise.public int getIndex()
public void setIndex(int index)
index - The intended unique contour identifier.public boolean isGenerateRamps()
NoteListFormat.SOUND format option.
public void setGenerateRamps(boolean generateRamps)
NoteListFormat.SOUND format option.
generateRamps - True if ramps are to be generated; false otherwise.public java.lang.String getPath()
Entity
getPath in interface EntityContainergetPath in class Entitypublic double getMinValue()
public void checkMinValue(double value)
EnsembleContour minimum.
value - public void setMinValue(double minValue)
minValue - The minimum below which segment origins and goals may not descend.public boolean isMinExclusive()
public void setMinExclusive(boolean minExclusive)
minExclusive - False if segment origins and goals are permitted to reach the minimum value; true otherwise.public double getMaxValue()
public void checkMaxValue(double value)
EnsembleContour maximum.
value - public void setMaxValue(double maxValue)
maxValue - The intended maximum.public boolean isMaxExclusive()
public void setMaxExclusive(boolean maxExclusive)
maxExclusive - False if segment origins and goals are permitted to reach the maximum value; true otherwise.public double getMinExpValue()
public void setMinExpValue(double minExpValue)
minExpValue - A lower bound in the exponential range that corresponds the MinValue property in the linear range. Must be positive.public void checkMinExpValue(double value)
EnsembleContour MinExpValue
value - The indicated value.public double getMaxExpValue()
public void setMaxExpValue(double maxExpValue)
maxExpValue - An upper bound in the exponential range that corresponds the MaxValue property in the linear range. Must be positive.public void checkMaxExpValue(double value)
EnsembleContour MaxExpValue
value - The indicated value.public double getDefaultValue()
public void checkDefaultValue(double value)
EnsembleContour default.
value - The indicated value.public void setDefaultValue(double defaultValue)
defaultValue - The value of the contour in the circumstance that now segment has been created.public CalculationMode getCalculationMode()
CalculationMode property.
The CalculationMode property determines how the value of a contour is calculated
at any given ordinate using the contour's segment data.
CalculationMode value.public java.util.SortedMap<java.lang.String,MidiControl> getMidiControls()
MidiControl instances that are bound to this EnsembleContour. The collection is indexed by control type name.public MidiControl addMidiControl(TypeOfMidiControl controlType)
MidiControl instance.
controlType - The new control's type. Must not be used by any existing MidiControl in the current branch of the ensemble component hierarchy.
MidiControl instance.
public static EnsembleContour fromXmlNode(org.w3c.dom.Element element,
ContainerOfChoirsAndContours container)
EnsembleContour instance and fill it with loaded data.
element - The XML element that provides the EnsembleContour datacontainer - The Choir which will contain the new Choir.
EnsembleContour instance.public void wipe()
EntityEntity instance.
wipe in class Entitypublic java.lang.String toString()
toString in class EnsembleEntitypublic boolean convertsLinearToExponential()
public double convertLinearToExponential(double value)
value - A value ranging linearly from minValue to maxValue.
minExpValue to maxExpValue.public boolean hasMaxExpValue()
public boolean hasMinExpValue()
public static XmlSpec createXmlSpec()
EnsembleChoir class.
XmlSpec instance.
java.lang.RuntimeException - when an XmlSpec instance already exists for the EnsembleChoir class.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 | |||||||||