All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.toolkit.controls.StandardGainMeterControl

java.lang.Object
   |
   +----ejmf.toolkit.controls.AbstractListenerControl
           |
           +----ejmf.toolkit.controls.ActionListenerControl
                   |
                   +----ejmf.toolkit.controls.AbstractGainControl
                           |
                           +----ejmf.toolkit.controls.StandardGainMeterControl

public class StandardGainMeterControl
extends AbstractGainControl
implements GainChangeListener
Gain meter Control for StandardControlPanel.


Constructor Index

 o StandardGainMeterControl()
Create a StandardGainMeterControl
 o StandardGainMeterControl(Controller)
Create a StandardGainMeterControl and associate it with a Controller.

Method Index

 o createControlComponent()
Create the GainMeter Component.
 o createControlListener()
Return the ActionListener used to toggle mute button.
 o gainChange(GainChangeEvent)
Implements GainChangeListener.
 o setControllerHook(Controller)
This method is called when setController is called on an AbstractListenerControl.
 o setLevel(float)
Set the level value for this GainMeter.
 o setMute(boolean)
Set the mute value for this GainMeter.

Constructors

 o StandardGainMeterControl
 public StandardGainMeterControl(Controller controller)
Create a StandardGainMeterControl and associate it with a Controller.

Parameters:
controller - A Controller with which control is associated.
 o StandardGainMeterControl
 public StandardGainMeterControl()
Create a StandardGainMeterControl

Methods

 o setControllerHook
 protected void setControllerHook(Controller newController)
This method is called when setController is called on an AbstractListenerControl.

Parameters:
newController - A Controller with which this control is associated.
Overrides:
setControllerHook in class AbstractGainControl
 o createControlComponent
 protected Component createControlComponent()
Create the GainMeter Component.

Returns:
The component that acts as gain meter control.
Overrides:
createControlComponent in class AbstractListenerControl
See Also:
GainMeterButton
 o setLevel
 public void setLevel(float level)
Set the level value for this GainMeter. The input argument is a level value from the Player's GainControl. It is the GainMeter's responsibility to convert it to a value that can be meaningfully rendered.

Parameters:
level - This argument represents a level value returned by a Player's GainControl.
 o setMute
 public void setMute(boolean muted)
Set the mute value for this GainMeter.

Parameters:
muted - If muted is true, audio signal is suppressed. Otherwise, audio signal is rendered.
 o createControlListener
 protected EventListener createControlListener()
Return the ActionListener used to toggle mute button.

Returns:
An ActionListener for toggling mute state.
Overrides:
createControlListener in class AbstractListenerControl
 o gainChange
 public void gainChange(GainChangeEvent gce)
Implements GainChangeListener. Level and mute are set appropriately and the view updated for every change to the GainControl on which this GainMeter is a listener.

Parameters:
e - An GainChangeEvent triggerd by a GainControl
See Also:
GainControl, GainChangeEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index