Class SectionAddedEvent

java.lang.Object
org.jjazz.chordleadsheet.api.event.ClsChangeEvent
org.jjazz.chordleadsheet.api.event.SectionAddedEvent

public class SectionAddedEvent extends ClsChangeEvent
A CLI_Section was added, possibly replacing an existing one in the same bar.

getItemChanges() returns PROP_ITEM_POSITION change events: adjusted items because of a TimeSignature change.

  • Constructor Details

    • SectionAddedEvent

      public SectionAddedEvent(ChordLeadSheet src, CLI_Section cliSection, CLI_Section replacedCliSection)
      Parameters:
      src -
      cliSection - The added section
      replacedCliSection - The replaced section (must be in the same bar than cliSection). Can be null.
  • Method Details

    • getSameBarReplacedSection

      public CLI_Section getSameBarReplacedSection()
      The optional section at same bar which was replaced by getCLI_Section().
      Returns:
      Can be null
    • getPreviousBarSection

      public CLI_Section getPreviousBarSection()
      The section of the previous bar.
      Returns:
      Null if getCLI_Section() is at bar 0
    • getCLI_Section

      public CLI_Section getCLI_Section()
    • toString

      public String toString()
      Overrides:
      toString in class Object