Class ItemBarShiftedEvent

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

public class ItemBarShiftedEvent extends ClsChangeEvent
Items (possibly including sections) have been shifted left or right by a number of bars.
  • Constructor Details

    • ItemBarShiftedEvent

      public ItemBarShiftedEvent(ChordLeadSheet src, List<ChordLeadSheetItem> items, int nbBars)
      Items have been shifted left or right.
      Parameters:
      src -
      items - This can include sections.
      nbBars - positive or negative integer
  • Method Details

    • getBarDiff

      public int getBarDiff()
      The number of bars item(s) have been moved.
      Returns:
      negative or positive integer, negative means moved to the left.
    • toString

      public String toString()
      Overrides:
      toString in class Object