Class TransportControlPanel

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

public class TransportControlPanel extends JPanel implements ActionListener
The Class TransportControlPanel.
See Also:
  • Field Details

    • PLAY_BUTTON

      public static final int PLAY_BUTTON
      The Constant PLAY_BUTTON.
      See Also:
    • PAUSE_BUTTON

      public static final int PAUSE_BUTTON
      The Constant PAUSE_BUTTON.
      See Also:
    • STOP_BUTTON

      public static final int STOP_BUTTON
      The Constant STOP_BUTTON.
      See Also:
  • Constructor Details

    • TransportControlPanel

      public TransportControlPanel(TransportControlListener controlListener)
      Instantiates a new transport control panel.
      Parameters:
      controlListener - the control listener
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • performPause

      public void performPause()
      Perform pause.
    • stop

      public void stop()
      Stop.
    • reset

      public void reset()
      Reset.
    • setButtonTooltipText

      public void setButtonTooltipText(int buttonIndex, String tooltip)
      Sets the button tooltip text.
      Parameters:
      buttonIndex - the button index
      tooltip - the tooltip
    • getButton

      public AbstractButton getButton(int buttonIndex)
      Gets the button.
      Parameters:
      buttonIndex - the button index
      Returns:
      the button
    • setAllowStop

      public void setAllowStop(boolean allowStop)
      Sets the allow stop.
      Parameters:
      allowStop - the new allow stop