Class SptRhythmParentSectionChangedEvent
java.lang.Object
org.jjazz.songstructure.api.event.SgsChangeEvent
org.jjazz.songstructure.api.event.SptRhythmParentSectionChangedEvent
SongParts got their rhythm and/or parent section changed.
getSongParts() will return the updated SongParts (newSpts).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSptRhythmParentSectionChangedEvent(SongStructure src, Rhythm r, Map<SongPart, SptRhythmParentSectionChangedEvent.OldData> mapSptOldData, List<SongPart> newSpts) Create the event. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class SgsChangeEvent
addSongPartChanges, getRhythms, getSongPart, getSongPartChanges, getSongParts, getSource, isRedo, isUndo, isUndoOrRedo, setIsRedo, setIsUndo, sortSongParts
-
Constructor Details
-
SptRhythmParentSectionChangedEvent
public SptRhythmParentSectionChangedEvent(SongStructure src, Rhythm r, Map<SongPart, SptRhythmParentSectionChangedEvent.OldData> mapSptOldData, List<SongPart> newSpts) Create the event.- Parameters:
src-r- The new rhythm. Can be null if only parent section was changed.mapSptOldData- The old data for each SongPart from newSptsnewSpts- The updated SongParts
-
-
Method Details
-
getNewRhythm
- Returns:
- Can be null if only the parent section was changed
-
getOldSptsCopies
- Returns:
- The old data for each updated SongPart.
-