Class SgsChangeEvent

java.lang.Object
org.jjazz.songstructure.api.event.SgsChangeEvent
Direct Known Subclasses:
RpValueChangedEvent, SgsActionEvent, SptAddedEvent, SptRemovedEvent, SptRenamedEvent, SptReplacedEvent, SptResizedEvent

public class SgsChangeEvent extends Object
Describe a change in a SongStructure.
  • Constructor Details

  • Method Details

    • getSongPart

      public SongPart getSongPart()
      Returns:
      The first SongPart, i.e. which has the lowest startBarIndex. Can be null.
    • getSongParts

      public List<SongPart> getSongParts()
      Returns:
      A list of SongParts ordered by startBarIndex (lowest first). Can be empty.
    • getSource

      public SongStructure getSource()
    • sortSongParts

      public static void sortSongParts(List<SongPart> spts)