org.tanager.ui
Class CUIStatePaused

java.lang.Object
  extended by org.tanager.ui.CUIState
      extended by org.tanager.ui.CUIStatePaused

public class CUIStatePaused
extends CUIState

This class encapsulates the handling of the Tanager UI events while in the Paused state.

Version:
$Revision: 1.2.2.1 $
Author:
Bob Lavey

Field Summary
 
Fields inherited from class org.tanager.ui.CUIState
pauseIcon_, playIcon_
 
Constructor Summary
protected CUIStatePaused()
           This is the only contructor allowed for a CUIStatePaused object.
 
Method Summary
 javax.swing.Icon getMiddleButtonIcon()
           This method returns the play icon while in the Paused state.
 void middleButtonPressed()
           This method handles a middleButtonPressed() event.
 void stopButtonPressed()
           This method handles a stopButtonPressed() event.
 
Methods inherited from class org.tanager.ui.CUIState
debugStateEntry, doEntryActions, downButtonPressed, getTheButtonPane, getTheContext, getTheUIController, idle, initialize, leftButtonPressed, pausedSong, playingSong, rightButtonPressed, upButtonPressed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CUIStatePaused

protected CUIStatePaused()

This is the only contructor allowed for a CUIStatePaused object.

Method Detail

getMiddleButtonIcon

public javax.swing.Icon getMiddleButtonIcon()

This method returns the play icon while in the Paused state.

Overrides:
getMiddleButtonIcon in class CUIState
Returns:
the play icon

middleButtonPressed

public void middleButtonPressed()

This method handles a middleButtonPressed() event.

Semantics:
  1. transition to the BeginPlaying state by instantiating a new CUIStateBeginPlaying object and setting the context's state to the new object

Overrides:
middleButtonPressed in class CUIState

stopButtonPressed

public void stopButtonPressed()

This method handles a stopButtonPressed() event.

Semantics:
  1. transition to the BeginStopping state by instantiating a new CUIStateBeginStopping object and setting the context's state to the new object

Overrides:
stopButtonPressed in class CUIState