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
-
StandardControlPanel(Player)
- Build a StandardControlPanel with all of the default controls.
-
StandardControlPanel(Player, int)
- Build a StandardControlPanel designating which controls are
desired.
-
addComponents(int)
- Does the work of building the control components and
adding them to the layout.
-
createControls(Player)
- Creates Controls associated with this Control Panel.
-
getFastForwardButton()
-
Get the fast forward button control
-
getGainButtonPanel()
-
Get the gain button panel
-
getGainMeterButton()
-
Get the gain meter button control
-
getPauseControl()
-
Get the pause button control
-
getProgressComponent()
-
Get the progress control
-
getReverseButton()
-
Get the reverse button control
-
getStartButton()
-
Get the start button control
-
getStopButton()
-
Get the stop button control
-
setFastForwardButton(AbstractButton)
- Set the control button for fast forwarding the player
associated with this control panel.
-
setFastForwardButton(AbstractButton, MouseListener)
- Set the control button for fast forwarding the player
associated with this control panel.
-
setGainButtonPanel(AbstractGainButtonPanel)
- Set the control component for gain Control
-
setGainButtonPanel(AbstractGainButtonPanel, ActionListener)
- Set the control component and listener semantics for gain Control
-
setGainMeterButton(AbstractButton)
- Set the control component for gain meter Control
-
setGainMeterButton(AbstractButton, ActionListener)
- Set the control component and listener semantics for gain meter Control
-
setPauseButton(AbstractButton)
- Set the control button for pausing the player
associated with this control panel.
-
setPauseButton(AbstractButton, ActionListener)
-
Set the pause button with use-supplied semantics.
-
setProgressSlider(ProgressSlider)
- Set the control component for progress bar
associated with this control panel.
-
setProgressSlider(ProgressSlider, ChangeListener)
- Set the control component for displaying the player
progress slider associated with this control panel.
-
setReverseButton(AbstractButton)
- Set the control button for reversing the player
associated with this control panel.
-
setReverseButton(AbstractButton, MouseListener)
- Set the control button for reversing the player
associated with this control panel.
-
setStartButton(AbstractButton)
- Set the control button for starting the player
associated with this control panel.
-
setStartButton(AbstractButton, ActionListener)
- Set the control button for starting the player
associated with this control panel.
-
setStopButton(AbstractButton)
- Set the control button for stopping the player
associated with this control panel.
-
setStopButton(AbstractButton, ActionListener)
- Set the control button for stopping the player
associated with this control panel.
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
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
createControls
protected AbstractControls createControls(Player player)
- Creates Controls associated with this Control Panel.
- Parameters:
- player - Associated Player
- Overrides:
- createControls in class AbstractControlPanel
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
getStartButton
public AbstractButton getStartButton()
- Get the start button control
- Returns:
- An AbstractButton
getPauseControl
public AbstractButton getPauseControl()
- Get the pause button control
- Returns:
- An AbstractButton
getFastForwardButton
public AbstractButton getFastForwardButton()
- Get the fast forward button control
- Returns:
- An AbstractButton
getProgressComponent
public ProgressSlider getProgressComponent()
- Get the progress control
- Returns:
- A ProgressSlider
getStopButton
public AbstractButton getStopButton()
- Get the stop button control
- Returns:
- An AbstractButton
getReverseButton
public AbstractButton getReverseButton()
- Get the reverse button control
- Returns:
- An AbstractButton
getGainButtonPanel
public AbstractGainButtonPanel getGainButtonPanel()
- Get the gain button panel
- Returns:
- An AbstractGainButtonPanel
getGainMeterButton
public AbstractButton getGainMeterButton()
- Get the gain meter button control
- Returns:
- An AbstractButton
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
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
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
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
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
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
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
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
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
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.
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
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
setGainMeterButton
public void setGainMeterButton(AbstractButton c)
- Set the control component for gain meter Control
- Parameters:
- c - An AbstractButton
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.
setGainButtonPanel
public void setGainButtonPanel(AbstractGainButtonPanel c)
- Set the control component for gain Control
- Parameters:
- c - an AbstractGainButtonPanel
- See Also:
- AbstractGainButtonPanel
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