Class SgsChangeEvent
java.lang.Object
org.jjazz.songstructure.api.event.SgsChangeEvent
- Direct Known Subclasses:
RpValueChangedEvent
,SgsActionEvent
,SptAddedEvent
,SptRemovedEvent
,SptRenamedEvent
,SptReplacedEvent
,SptResizedEvent
Describe a change in a SongStructure.
-
Constructor Summary
ConstructorDescriptionSgsChangeEvent
(SongStructure src, Collection<SongPart> spts) SgsChangeEvent
(SongStructure src, SongPart spt) -
Method Summary
-
Constructor Details
-
SgsChangeEvent
-
SgsChangeEvent
-
SgsChangeEvent
- Parameters:
src
-spts
-
-
-
Method Details
-
getSongPart
- Returns:
- The first SongPart, i.e. which has the lowest startBarIndex. Can be null.
-
getSongParts
- Returns:
- A list of SongParts ordered by startBarIndex (lowest first). Can be empty.
-
getSource
-
sortSongParts
-