public static Barline CreateBarline(BarlineProperties bi) { ObjectFactory factory = new ObjectFactory(); Barline barline = factory.createBarline(); //create an ending if (bi.EndingValue != "") { Ending ending = factory.createEnding(); ending.setType(StartStopDiscontinue.fromValue(bi.EndingType)); ending.setValue(bi.EndingValue); barline.setEnding(ending); } //create a repeat if (bi.RepeatTimes != "") { Repeat repeat = factory.createRepeat(); repeat.setTimes(new BigInteger(bi.RepeatTimes)); repeat.setDirection(BackwardForward.fromValue(bi.RepeatDirection)); barline.setRepeat(repeat); } //set bar line location if (bi.Location != "") { barline.setLocation(RightLeftMiddle.fromValue(bi.Location)); } return(barline); }
public Barline() { locationField = RightLeftMiddle.right; }
public BarLine() { this.locationField = RightLeftMiddle.right; }