Class MixConsole

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class MixConsole extends JPanel implements PropertyChangeListener, ActionListener
Edit song instruments parameters.

MixConsole's lookup can contain:
- our ActionMap
- the currently edited Song
- the currently edited MidiMix

The MixConsole Netbeans MenuBar is built from subfolders and actions available in the Actions/MixConsole/MenuBar layer folder.

See Also:
  • Constructor Details

  • Method Details

    • getLookup

      public org.openide.util.Lookup getLookup()
    • cleanup

      public void cleanup()
    • getVisibleRhythm

      public Rhythm getVisibleRhythm()
      Get the visible rhythm.

      If null all song rhythms are shown.

      Returns:
      Default value is null.
    • setVisibleRhythm

      public void setVisibleRhythm(Rhythm r)
      Set the visible rhythm.
      Parameters:
      r - If null all song rhythms are shown.
      Throws:
      IllegalStateException - If r is an AdaptedRhythm or if r does not belong to this song
    • getSong

      public Song getSong()
      The current song edited by the MixConsole.
      Returns:
      Can be null.
    • getMidiMix

      public MidiMix getMidiMix()
      The MidiMix currently edited by the MixConsole.
      Returns:
      Can be null.
    • getUndoManager

      public JJazzUndoManager getUndoManager()
    • getChannelPanelSets

      public TreeMap<Integer,MixConsole.ChannelPanelSet> getChannelPanelSets()
      A map which associates a ChannelPanelSet for each used Midi channel.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Component
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Specified by:
      actionPerformed in interface ActionListener
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Specified by:
      propertyChange in interface PropertyChangeListener