use of com.xenoage.zong.musicxml.types.MxlSystemLayout in project Zong by Xenoage.
the class ScoreFormatReader method readSystemLayout.
private void readSystemLayout() {
MxlSystemLayout mxlSystemLayout = mxlLayout.getSystemLayout();
if (mxlSystemLayout == null)
return;
SystemLayoutReader systemLayoutReader = new SystemLayoutReader(mxlSystemLayout, tenthsMm);
scoreFormat.setSystemLayout(systemLayoutReader.read());
Float topSystemDistance = systemLayoutReader.getTopSystemDistance();
if (topSystemDistance != null)
scoreFormat.setTopSystemDistance(topSystemDistance);
}
use of com.xenoage.zong.musicxml.types.MxlSystemLayout in project Zong by Xenoage.
the class PrintReader method readSystemLayout.
private SystemLayout readSystemLayout(boolean isPageStarted, float tenthMm) {
MxlLayout mxlLayout = mxlPrint.getLayout();
if (mxlLayout != null) {
MxlSystemLayout mxlSystemLayout = mxlLayout.getSystemLayout();
if (mxlSystemLayout != null) {
SystemLayoutReader systemLayoutReader = new SystemLayoutReader(mxlSystemLayout, tenthMm);
SystemLayout systemLayout = systemLayoutReader.read();
Float topSystemDistance = systemLayoutReader.getTopSystemDistance();
// for first systems on a page, use top-system-distance
if (isPageStarted && topSystemDistance != null)
systemLayout.setDistance(topSystemDistance);
return systemLayout;
}
}
return null;
}
Aggregations