Package ui

Class PlayPauseButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, SwingConstants

public class PlayPauseButton extends JButton implements PropertyChangeListener
A button that facilitates starting and pausing an interactive game of PacMann. The text of the button will reflect the next action (play vs. pause) that will be performed, and the button will be disabled (with appropriate text) when the game has ended.
See Also:
  • Field Details Link icon

    • controller Link icon

      private InteractiveGameController controller
      The interaction controller whose state determines this button's text and enabled status and who will receive commands from this button.
  • Constructor Details Link icon

    • PlayPauseButton Link icon

      public PlayPauseButton(InteractiveGameController controller)
      Create a new button providing an interface to `controller`.
  • Method Details Link icon