All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.toolkit.gui.controlpanel.StandardControlPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JPanel
                                   |
                                   +----ejmf.toolkit.gui.controlpanel.AbstractControlPanel
                                           |
                                           +----ejmf.toolkit.gui.controlpanel.StandardControlPanel

public class StandardControlPanel
extends AbstractControlPanel
StandardControlPanel extends JPanel and arranges the standard controls in a left-to-right fashion using FlowLayout and add(Component, index) Setters are defined that allow the user to change the visual component associated with any control. A version of these setters allows for the definition of a new listener. Two constructors are defined. The first builds all the default controls into the control panel. The second takes a flag which defines the controls to be built and displayed by the control panel. The flag values are defined by public static values provided by the class. These values can be OR'd together to set a flag value.

See Also:
AbstractControlPanel

Constructor Index

 o StandardControlPanel(Player)
Build a StandardControlPanel with all of the default controls.
 o StandardControlPanel(Player, int)
Build a StandardControlPanel designating which controls are desired.

Method Index

 o addComponents(int)
Does the work of building the control components and adding them to the layout.
 o createControls(Player)
Creates Controls associated with this Control Panel.
 o getFastForwardButton()
Get the fast forward button control
 o getGainButtonPanel()
Get the gain button panel
 o getGainMeterButton()
Get the gain meter button control
 o getPauseControl()
Get the pause button control
 o getProgressComponent()
Get the progress control
 o getReverseButton()
Get the reverse button control
 o getStartButton()
Get the start button control
 o getStopButton()
Get the stop button control
 o setFastForwardButton(AbstractButton)
Set the control button for fast forwarding the player associated with this control panel.
 o setFastForwardButton(AbstractButton, MouseListener)
Set the control button for fast forwarding the player associated with this control panel.
 o setGainButtonPanel(AbstractGainButtonPanel)
Set the control component for gain Control
 o setGainButtonPanel(AbstractGainButtonPanel, ActionListener)
Set the control component and listener semantics for gain Control
 o setGainMeterButton(AbstractButton)
Set the control component for gain meter Control
 o setGainMeterButton(AbstractButton, ActionListener)
Set the control component and listener semantics for gain meter Control
 o setPauseButton(AbstractButton)
Set the control button for pausing the player associated with this control panel.
 o setPauseButton(AbstractButton, ActionListener)
Set the pause button with use-supplied semantics.
 o setProgressSlider(ProgressSlider)
Set the control component for progress bar associated with this control panel.
 o setProgressSlider(ProgressSlider, ChangeListener)
Set the control component for displaying the player progress slider associated with this control panel.
 o setReverseButton(AbstractButton)
Set the control button for reversing the player associated with this control panel.
 o setReverseButton(AbstractButton, MouseListener)
Set the control button for reversing the player associated with this control panel.
 o setStartButton(AbstractButton)
Set the control button for starting the player associated with this control panel.
 o setStartButton(AbstractButton, ActionListener)
Set the control button for starting the player associated with this control panel.
 o setStopButton(AbstractButton)
Set the control button for stopping the player associated with this control panel.
 o setStopButton(AbstractButton, ActionListener)
Set the control button for stopping the player associated with this control panel.

Constructors

 o StandardControlPanel
 public StandardControlPanel(Player p)
Build a StandardControlPanel with all of the default controls.

Parameters:
p - A player with which control panel is associated.
See Also:
Player
 o StandardControlPanel
 public StandardControlPanel(Player p,
                             int buttonFlags)
Build a StandardControlPanel designating which controls are desired.

Parameters:
p - A player with which control panel is associated.
buttonFlags - Control values OR'd together which determine the controls that are displayed.
See Also:
Player

Methods

 o createControls
 protected AbstractControls createControls(Player player)
Creates Controls associated with this Control Panel.

Parameters:
player - Associated Player
Overrides:
createControls in class AbstractControlPanel
 o addComponents
 public void addComponents(int flags)
Does the work of building the control components and adding them to the layout. The default behavior is simply to use the components provided by BasicControlPanel. This method may be over-ridden for a wholesale customization of the control panel.

Overrides:
addComponents in class AbstractControlPanel
See Also:
BasicControlPanel
 o getStartButton
 public AbstractButton getStartButton()
Get the start button control

Returns:
An AbstractButton
 o getPauseControl
 public AbstractButton getPauseControl()
Get the pause button control

Returns:
An AbstractButton
 o getFastForwardButton
 public AbstractButton getFastForwardButton()
Get the fast forward button control

Returns:
An AbstractButton
 o getProgressComponent
 public ProgressSlider getProgressComponent()
Get the progress control

Returns:
A ProgressSlider
 o getStopButton
 public AbstractButton getStopButton()
Get the stop button control

Returns:
An AbstractButton
 o getReverseButton
 public AbstractButton getReverseButton()
Get the reverse button control

Returns:
An AbstractButton
 o getGainButtonPanel
 public AbstractGainButtonPanel getGainButtonPanel()
Get the gain button panel

Returns:
An AbstractGainButtonPanel
 o getGainMeterButton
 public AbstractButton getGainMeterButton()
Get the gain meter button control

Returns:
An AbstractButton
 o setStartButton
 public void setStartButton(AbstractButton c)
Set the control button for starting the player associated with this control panel.

Parameters:
c - An AbstractButton
See Also:
AbstractButton
 o setStartButton
 public void setStartButton(AbstractButton c,
                            ActionListener l)
Set the control button for starting the player associated with this control panel. Supply a listener to implement control semantics.

Parameters:
c - An AbstractButton
l - A MouseListener that implements button semantics.
See Also:
AbstractButton, MouseListener
 o setStopButton
 public void setStopButton(AbstractButton c)
Set the control button for stopping the player associated with this control panel.

Parameters:
c - An AbstractButton
See Also:
AbstractButton
 o setStopButton
 public void setStopButton(AbstractButton c,
                           ActionListener l)
Set the control button for stopping the player associated with this control panel. Supply a listener to implement control semantics.

Parameters:
c - An AbstractButton
l - An ActionListener that implements button semantics.
See Also:
AbstractButton, ActionListener
 o setFastForwardButton
 public void setFastForwardButton(AbstractButton c)
Set the control button for fast forwarding the player associated with this control panel.

Parameters:
c - An AbstractButton
See Also:
AbstractButton
 o setFastForwardButton
 public void setFastForwardButton(AbstractButton c,
                                  MouseListener l)
Set the control button for fast forwarding the player associated with this control panel. Supply a listener to implement control semantics.

Parameters:
c - An AbstractButton
l - A MouseListener that implements button semantics.
See Also:
AbstractButton, MouseListener
 o setReverseButton
 public void setReverseButton(AbstractButton c)
Set the control button for reversing the player associated with this control panel.

Parameters:
c - An AbstractButton
See Also:
AbstractButton
 o setReverseButton
 public void setReverseButton(AbstractButton c,
                              MouseListener l)
Set the control button for reversing the player associated with this control panel. Supply a listener to implement control semantics.

Parameters:
c - An AbstractButton
l - A MouseListener that implements button semantics.
See Also:
AbstractButton, MouseListener
 o setPauseButton
 public void setPauseButton(AbstractButton c)
Set the control button for pausing the player associated with this control panel.

Parameters:
c - An AbstractButton
See Also:
AbstractButton
 o setPauseButton
 public void setPauseButton(AbstractButton c,
                            ActionListener l)
Set the pause button with use-supplied semantics.

Parameters:
abstractButton - An AbstractButton to affect pause.
l - A ActionListener that implements button semantics.
 o setProgressSlider
 public void setProgressSlider(ProgressSlider c)
Set the control component for progress bar associated with this control panel.

Parameters:
c - A ProgressBar
See Also:
ProgressBar
 o setProgressSlider
 public void setProgressSlider(ProgressSlider c,
                               ChangeListener l)
Set the control component for displaying the player progress slider associated with this control panel. Supply a ChangeListener to implement control semantics.

Parameters:
c - A ProgressBar
See Also:
ProgressSlider, ChangeListener
 o setGainMeterButton
 public void setGainMeterButton(AbstractButton c)
Set the control component for gain meter Control

Parameters:
c - An AbstractButton
 o setGainMeterButton
 public void setGainMeterButton(AbstractButton c,
                                ActionListener l)
Set the control component and listener semantics for gain meter Control

Parameters:
c - An AbstractButton
l - An ActionListener that implements Control semantics.
 o setGainButtonPanel
 public void setGainButtonPanel(AbstractGainButtonPanel c)
Set the control component for gain Control

Parameters:
c - an AbstractGainButtonPanel
See Also:
AbstractGainButtonPanel
 o setGainButtonPanel
 public void setGainButtonPanel(AbstractGainButtonPanel c,
                                ActionListener l)
Set the control component and listener semantics for gain Control

Parameters:
c - an AbstractGainButtonPanel
l - An ActionListener that implements Control semantics.

All Packages  Class Hierarchy  This Package  Previous  Next  Index