|
||||||||||
| 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.TimedEvent
net.charlesames.music.musicxml.Attributes
public class Attributes
The Attributes class implements the MusicXML <attributes> element.
| Method Summary | |
|---|---|
Clef |
addClef(int number,
Clef.ClefSign sign,
int line,
int octave)
Add a new instance to the Clef collection. |
void |
dispose()
Release resources engaged by this object, thus rendering it amenable to garbage collection. |
boolean |
equals(MusicXmlEntity other)
Test if this MusicXML entity has the same content as another object. |
static Attributes |
fromXmlNode(org.w3c.dom.Element element,
Measure container)
Create a new Attributes instance and fill it with loaded data. |
java.util.SortedMap<java.lang.Integer,Clef> |
getClefList()
Get the list of clefs. |
int |
getDivisions()
Getter for the Divisions property. |
static Attributes |
getInstance(MusicXmlEntity container)
Create a new Attributes instance. |
KeySignature |
getKeySignature()
Getter for the KeySignature property. |
int |
getStaves()
Getter for the Staves property. |
TimeSignature |
getTimeSignature()
Getter for the TimeSignature property. |
void |
putXmlData(org.w3c.dom.Element element)
|
void |
setDivisions(int divisions)
Setter for the Divisions property |
void |
setKeySignature(KeySignature keySignature)
Setter for the KeySignature property. |
void |
setStaves(int staves)
Setter for the Staves property |
void |
setTimeSignature(TimeSignature timeSignature)
Setter for the TimeSignature 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.TimedEvent |
|---|
getComment, getDefaultX, getDuration, getTime, isInChord, setComment, setDefaultX, setTime |
| 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 void dispose()
Disposable
dispose in class TimedEventpublic static Attributes getInstance(MusicXmlEntity container)
container - The MusicXmlEntity which will contain the new Attributes instance.
public int getDivisions()
public void setDivisions(int divisions)
divisions - The intended Divisions value.public int getStaves()
public void setStaves(int staves)
staves - The intended Staves value.public KeySignature getKeySignature()
public void setKeySignature(KeySignature keySignature)
keySignature - The intended KeySignature value.public TimeSignature getTimeSignature()
public void setTimeSignature(TimeSignature timeSignature)
timeSignature - The intended TimeSignature value.public java.util.SortedMap<java.lang.Integer,Clef> getClefList()
Clef instances, indexed by staff number.
public Clef addClef(int number,
Clef.ClefSign sign,
int line,
int octave)
number - The staff number.sign - The sign: G, F, C, percussion, TAB, noneline - The position of the clef on the staff.octave - The octave displacement.
Clef instance.
public static Attributes fromXmlNode(org.w3c.dom.Element element,
Measure container)
element - The XML element that provides the Attributes datacontainer - The Measure which will contain the new Attributes instance.
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 TimedEventpublic boolean equals(MusicXmlEntity other)
MusicXmlEntity
equals in class TimedEventother - The other object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||