Class RhythmSelectionDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public abstract class RhythmSelectionDialog extends JDialog
A dialog to select a rhythm for a SongStructure.
See Also:
  • Method Details

    • getDefault

      public static RhythmSelectionDialog getDefault()
      Return the default implementation found in the global lookup.
      Returns:
      can't be null
    • preset

      public abstract void preset(RhythmInfo ri, RhythmSelectionDialog.RhythmPreviewProvider rpp)
      Initialize the dialog for the specified song rhythm.
      Parameters:
      ri -
      rpp - If null then the rhythm preview feature is disabled. If not null caller is responsible to call rpp.cleanup() when rpp is not used anymore.
    • isExitOk

      public abstract boolean isExitOk()
      Returns:
      True if dialog was exited OK, false if dialog operation was cancelled.
    • getSelectedRhythm

      public abstract RhythmInfo getSelectedRhythm()
      Return the selected rhythm.
      Returns:
      Null if no valid rhythm was selected, or user chose Cancel
    • setTitleLabel

      public abstract void setTitleLabel(String title)
      Set the title of the dialogm eg "Rhythm for bar XX".
      Parameters:
      title -
    • isApplyRhythmToNextSongParts

      public abstract boolean isApplyRhythmToNextSongParts()
      Return if the rhythm should be also applied to the next songParts which have the same rhythm than the sptModel.
      Returns:
    • isUseRhythmTempo

      public abstract boolean isUseRhythmTempo()
      Return if the rhythm's preferred tempo should be applied to current song
      Returns:
    • cleanup

      public abstract void cleanup()
      Cleanup references to preset data and dialog results.