Interface CLI_Factory
public interface CLI_Factory
A factory for ChordLeadSheetItems.
-
Method Summary
Modifier and TypeMethodDescriptioncreateBarAnnotation
(ChordLeadSheet cls, String annotation, int bar) createChordSymbol
(String chordSymbol, Position pos) Create a CLI_ChordSymbol from a string specification.createChordSymbol
(ChordLeadSheet cls, ExtChordSymbol ecs, Position pos) Create a CLI_ChordSymbol.createSection
(ChordLeadSheet cls, String sectionName, TimeSignature ts, int barIndex) Create a Section.static CLI_Factory
-
Method Details
-
getDefault
-
createSection
Create a Section.- Parameters:
cls
- Can be null.sectionName
-ts
-barIndex
-- Returns:
-
createChordSymbol
Create a CLI_ChordSymbol.- Parameters:
cls
- Can be null.ecs
-pos
-- Returns:
-
createChordSymbol
Create a CLI_ChordSymbol from a string specification.Use default values for non specified attributes.
- Parameters:
chordSymbol
- E.g. "C" or "Bb7#5"pos
-- Returns:
- Throws:
ParseException
- If chord symbol specification is invalid
-
createBarAnnotation
-
getSampleSection
CLI_Section getSampleSection() -
getSampleChordSymbol
CLI_ChordSymbol getSampleChordSymbol()
-