use of com.xenoage.zong.musicxml.types.attributes.MxlPrintAttributes in project Zong by Xenoage.
the class PrintReader method readBreak.
private Break readBreak() {
MxlPrintAttributes mxlPA = mxlPrint.getPrintAttributes();
SystemBreak systemBreak = readSystemBreak(mxlPA.getNewSystem());
PageBreak pageBreak = readPageBreak(mxlPA.getNewPage());
if (systemBreak != null || pageBreak != null)
return new Break(pageBreak, systemBreak);
return null;
}
use of com.xenoage.zong.musicxml.types.attributes.MxlPrintAttributes in project Zong by Xenoage.
the class MxlPrint method read.
@MaybeNull
public static MxlPrint read(XmlReader reader) {
MxlLayout layout = new MxlLayout();
MxlPrintAttributes printAttributes = MxlPrintAttributes.read(reader);
while (reader.openNextChildElement()) {
layout.readElement(reader);
reader.closeElement();
}
if (false == layout.isUsed())
layout = null;
if (layout != null || printAttributes != noPrintAttributes)
return new MxlPrint(layout, printAttributes);
else
return null;
}
Aggregations