Interface CLI_Section

All Superinterfaces:
ChordLeadSheetItem<Section>, Comparable<ChordLeadSheetItem<?>>, Transferable

public interface CLI_Section extends ChordLeadSheetItem<Section>
Represent a section with a name (e.g. "Verse1") and a time signature, at a specific bar.

  • Field Details

  • Method Details

    • getCopy

      CLI_Section getCopy(Position newPos, ChordLeadSheet cls)
      Same as getCopy() except that we possibly rename section if its name clashes with an existing section in cls. ClientProperties are also copied.
      Parameters:
      newPos -
      cls - If null, section name is directly reused.
      Returns:
      See Also:
    • createSectionName

      static String createSectionName(String sectionName, ChordLeadSheet cls)
      Derive a new section name which is unique in the specified chord leadsheet.

      If sectionName is not used, just return it. Otherwise append a number to sectionName (eg "Chorus-2") until we get a non-used section name.

      Parameters:
      sectionName - Create a name from this parameter.
      cls - If null just returns sectionName
      Returns: