use of com.xenoage.zong.musicxml.types.attributes.MxlPrintStyle in project Zong by Xenoage.
the class FormattedTextReader method readStyle.
@NonNull
public FormattedTextStyle readStyle(MxlFormattedText mxlText) {
MxlPrintStyle mxlPrintStyle = mxlText.getPrintStyle();
FontInfo font = new FontInfoReader(mxlPrintStyle.getFont(), FontInfo.defaultValue).read();
Color color = readColor(mxlPrintStyle);
return new FormattedTextStyle(font, color, Superscript.Normal);
}
use of com.xenoage.zong.musicxml.types.attributes.MxlPrintStyle in project Zong by Xenoage.
the class MxlAccidentalMark method read.
@NonNull
public static MxlAccidentalMark read(XmlReader reader) {
MxlPrintStyle printStyle = MxlPrintStyle.read(reader);
MxlPlacement placement = MxlPlacement.read(reader);
MxlAccidentalText accidentalText = MxlAccidentalText.read(reader);
return new MxlAccidentalMark(accidentalText, printStyle, placement);
}
use of com.xenoage.zong.musicxml.types.attributes.MxlPrintStyle in project Zong by Xenoage.
the class MxlFermata method read.
/**
* Reads the given element and returns it, or returns null if
* the element is not supported.
*/
@MaybeNull
public static MxlFermata read(XmlReader reader) {
MxlUprightInverted type = MxlUprightInverted.read(reader, "type");
MxlPrintStyle printStyle = MxlPrintStyle.read(reader);
return new MxlFermata(type, printStyle);
}
use of com.xenoage.zong.musicxml.types.attributes.MxlPrintStyle in project Zong by Xenoage.
the class MxlFormattedText method read.
@NonNull
public static MxlFormattedText read(XmlReader reader) {
MxlLeftCenterRight justify = MxlLeftCenterRight.read(reader, "justify");
MxlLeftCenterRight hAlign = MxlLeftCenterRight.read(reader, "halign");
MxlVAlign vAlign = MxlVAlign.read(reader);
MxlPrintStyle printStyle = MxlPrintStyle.read(reader);
String value = reader.getTextNotNull();
return new MxlFormattedText(value, justify, hAlign, vAlign, printStyle);
}
use of com.xenoage.zong.musicxml.types.attributes.MxlPrintStyle in project Zong by Xenoage.
the class MxlPedal method read.
@NonNull
public static MxlPedal read(XmlReader reader) {
String type = reader.getAttributeNotNull("type");
MxlPrintStyle printStyle = MxlPrintStyle.read(reader);
return new MxlPedal(MxlStartStopChange.read(type), printStyle);
}
Aggregations