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.
-
StandardGainMeterControl()
- Create a StandardGainMeterControl
-
StandardGainMeterControl(Controller)
- Create a StandardGainMeterControl and associate it
with a Controller.
-
createControlComponent()
- Create the GainMeter Component.
-
createControlListener()
- Return the ActionListener used to toggle
mute button.
-
gainChange(GainChangeEvent)
- Implements GainChangeListener.
-
setControllerHook(Controller)
- This method is called when
setController
is called on an AbstractListenerControl.
-
setLevel(float)
- Set the level value for this GainMeter.
-
setMute(boolean)
- Set the mute value for this GainMeter.
StandardGainMeterControl
public StandardGainMeterControl(Controller controller)
- Create a StandardGainMeterControl and associate it
with a Controller.
- Parameters:
- controller - A Controller with which control is associated.
StandardGainMeterControl
public StandardGainMeterControl()
- Create a StandardGainMeterControl
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
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
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.
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.
createControlListener
protected EventListener createControlListener()
- Return the ActionListener used to toggle
mute button.
- Returns:
- An ActionListener for toggling mute state.
- Overrides:
- createControlListener in class AbstractListenerControl
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