Package org.jjazz.songstructure.api
Class SongStructureFactory
java.lang.Object
org.jjazz.songstructure.api.SongStructureFactory
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract SongStructureabstract SongStructurecreateSgs(ChordLeadSheet cls, boolean keepSgsUpdated) Create a SongStructure with cls as parentChordLeadSheet.abstract SongStructureA simple SGS with just 1 SongPart of 4 bars and the RhythmDatabase default rhythm.static SongStructureFactory 
- 
Constructor Details
- 
SongStructureFactory
public SongStructureFactory() 
 - 
 - 
Method Details
- 
getDefault
 - 
createEmptySgs
 - 
createSimpleSgs
A simple SGS with just 1 SongPart of 4 bars and the RhythmDatabase default rhythm.- Returns:
 
 - 
createSgs
public abstract SongStructure createSgs(ChordLeadSheet cls, boolean keepSgsUpdated) throws UnsupportedEditException Create a SongStructure with cls as parentChordLeadSheet.One SongPart is created for each cls section.
SongStructure can listen to cls changes (sections add/remove/move, resize) to remain updated.- Parameters:
 cls- The model to rely on to build the SongParts.keepSgsUpdated- If true sgs will remain in sync with cls changes.- Returns:
 - Throws:
 UnsupportedEditException
 
 -