|
||||||||||
| 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.Measure
net.charlesames.music.musicxml.MeasureInPart
public class MeasureInPart
The MeasureInPart class implements the MusicXML <measure> element.
| Method Summary | |
|---|---|
Clef |
createClef(int time,
int number,
Clef.ClefSign sign,
int line,
int octave)
Insert a Clef instance at the indicated time with the indicated parameters. |
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 MeasureInPart |
fromXmlNode(org.w3c.dom.Element element,
PartInScore container)
Create a new MeasureInPart instance and fill it with loaded data. |
PartInScore |
getContainer()
Get the parent object. |
Direction |
getDirection(int offset,
int staff,
int voice,
Placement placement)
Locate a Direction instance in the measure; if not found create. |
void |
putXmlData(org.w3c.dom.Element element)
|
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.Measure |
|---|
addEvent, advanceTime, createBarline, createKeySignature, createTimeSignature, divisionsFromRatio, getAttributes, getDivisions, getEvents, getImplicit, getMeasureDuration, getMeasurePrint, getNoteDuration, getNumber, getTime, getWidth, setDivisions, setImplicit, setMeasureDuration, setMeasurePrint, setNoteDuration, setNumber, setStaves, setTime, setWidth |
| Methods inherited from class net.charlesames.music.musicxml.MusicXmlEntity |
|---|
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 Measurepublic PartInScore getContainer()
MusicXmlEntity
getContainer in class MusicXmlEntity
public Clef createClef(int time,
int number,
Clef.ClefSign sign,
int line,
int octave)
Clef instance at the indicated time with the indicated parameters.
time - Event timenumber - Staff numbersign - C F G Xline - Position of sign on staff.octave - Octave displacement.
Clef instance.
public static MeasureInPart fromXmlNode(org.w3c.dom.Element element,
PartInScore container)
element - The XML element that provides the MeasureInPart datacontainer - The MusicXmlEntity which will contain the new MeasureInPart 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 Measure
public Direction getDirection(int offset,
int staff,
int voice,
Placement placement)
Direction instance in the measure; if not found create.
offset - staff - voice - placement -
Direction instance.public boolean equals(MusicXmlEntity other)
MusicXmlEntity
equals in class Measureother - The other object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||