|
||||||||||
| 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.music.musicxml.MusicXmlEntity
net.charlesames.music.musicxml.notation.Notation
net.charlesames.music.musicxml.notation.Tuplet
public class Tuplet
The Tuplet class implements the MusicXML <tuplet> notation.
| Method Summary | |
|---|---|
boolean |
equals(MusicXmlEntity other)
Test if this MusicXML entity has the same content as another object. |
static Tuplet |
fromXmlNode(org.w3c.dom.Element element,
NoteInMeasure container)
Create a new Tuplet instance and fill it with loaded data. |
int |
getActual()
Getter for the Actual property. |
YesNo |
getBracket()
Getter for the Bracket property. |
static Tuplet |
getInstance(NoteInMeasure container)
Create a new Tuplet instance. |
int |
getNormal()
Getter for the Normal property. |
int |
getNumber()
Getter for the Number property. |
TupletShowNumber |
getShowNumber()
Getter for the ShowNumber property. |
StartStop |
getTupletType()
Getter for the TupletType property. |
void |
putXmlData(org.w3c.dom.Element element)
|
void |
setActual(int actual)
Setter for the Actual property. |
void |
setBracket(YesNo bracket)
Setter for the Bracket property. |
void |
setNormal(int normal)
Setter for the Normal property. |
void |
setNumber(int number)
Setter for the Number property. |
void |
setShowNumber(TupletShowNumber showNumber)
Setter for the ShowNumber property. |
void |
setTupletType(StartStop tupletType)
Setter for the TupletType property. |
org.w3c.dom.Node |
toXmlNode(org.w3c.dom.Node parent)
Serialize the content of a MusicXML entity into an XML element. |
| Methods inherited from class net.charlesames.music.musicxml.notation.Notation |
|---|
dispose, getContent, getPlacement, setContent, setPlacement |
| Methods inherited from class net.charlesames.music.musicxml.MusicXmlEntity |
|---|
getContainer, makeDirty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Tuplet getInstance(NoteInMeasure container)
Tuplet instance.
container - The NoteInMeasure which will contain the new Tuplet instance.
public int getNumber()
Number property.
Number value.public void setNumber(int number)
Number property.
number - The intended Number value.public int getActual()
Actual property.
Actual value.public void setActual(int actual)
Actual property.
actual - The intended Actual value.public int getNormal()
Normal property.
Normal value.public void setNormal(int normal)
Normal property.
normal - The intended Normal value.public StartStop getTupletType()
TupletType property.
TupletType value.public void setTupletType(StartStop tupletType)
TupletType property.
tupletType - The intended TupletType value.public YesNo getBracket()
Bracket property.
Bracket value.public void setBracket(YesNo bracket)
Bracket property.
bracket - The intended Bracket value.public TupletShowNumber getShowNumber()
ShowNumber property.
ShowNumber value.public void setShowNumber(TupletShowNumber showNumber)
ShowNumber property.
showNumber - The intended ShowNumber value.public org.w3c.dom.Node toXmlNode(org.w3c.dom.Node parent)
MusicXmlEntity
toXmlNode in class MusicXmlEntityparent - The XML element which is to receive the data.
public void putXmlData(org.w3c.dom.Element element)
putXmlData in class Notation
public static Tuplet fromXmlNode(org.w3c.dom.Element element,
NoteInMeasure container)
element - The XML element that provides the Tuplet datacontainer - The NoteInMeasure which will contain the new Tuplet instance.
public boolean equals(MusicXmlEntity other)
MusicXmlEntity
equals in class Notationother - The other object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||