net.sf.fmj.ejmf.toolkit.gui.controls
Interface GainMeter

All Known Implementing Classes:
GainMeterButton

public interface GainMeter

Defines methods required of a GainMeter


Method Summary
 int mapToMeterLevel(float level)
          Transform a gain control level value [0.0...1.0] to a value appropriate for this GainMeter.
 void setLevel(float level)
          Set the gain value for this GainMeter.
 void setMute(boolean flag)
          Sets the mute status of the GainMeter.
 void updateView()
          Force redraw of the gain meter button
 

Method Detail

setMute

void setMute(boolean flag)
Sets the mute status of the GainMeter.

Parameters:
flag - If true, GainMeter is muted. Otherwise gain is not muted.

setLevel

void setLevel(float level)
Set the gain value for this GainMeter.

Parameters:
level - A gain value in GainMeter coordinates.

mapToMeterLevel

int mapToMeterLevel(float level)
Transform a gain control level value [0.0...1.0] to a value appropriate for this GainMeter.

Parameters:
level - A value returned by getLevel method of a GainControl object.
Returns:
An integer value that represents a legal level value for this GainMeter.

updateView

void updateView()
Force redraw of the gain meter button