/** Calls makeSwing on each individual Part. */ public void makeSwing() { ListIterator<MelodyPart> i = partList.listIterator(); while (i.hasNext()) { MelodyPart m = i.next(); Style style = chordProg.getStyle(); if (style != null) { m.setSwing(style.getSwing()); } m.makeSwing(chordProg.getSectionInfo()); } }
/** Set the style of this score, but only if there is no SectionInfo already established. */ public void setStyle(Style style) { if (chordProg.getSectionInfo() == null || chordProg.getSectionInfo().hasOneSection()) { chordProg.setStyle(style); } }