javax.media
Class GainChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.media.MediaEvent
              |
              +--javax.media.GainChangeEvent

public class GainChangeEvent
extends MediaEvent

A GainChangeEvent is posted by a GainControl when its state has been updated.

Java Beans support

Any implementation of this object is required to be subclassed from either java.util.EventObject or sunw.util.EventObject.

See Also:
GainControl, GainChangeListener, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GainChangeEvent(GainControl from, boolean mute, float dB, float level)
           
 
Method Summary
 float getDB()
          Get the GainControl's new gain value in dB.
 float getLevel()
          Get the GainControl's new gain value in the level scale.
 boolean getMute()
          Get the GainControl's new mute value.
 java.lang.Object getSource()
          Get the object that posted this event.
 GainControl getSourceGainControl()
          Get the GainControl that posted this event.
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GainChangeEvent

public GainChangeEvent(GainControl from,
                       boolean mute,
                       float dB,
                       float level)
Method Detail

getSource

public java.lang.Object getSource()
Get the object that posted this event.
Returns:
The object that posted this event.
Overrides:
getSource in class java.util.EventObject

getSourceGainControl

public GainControl getSourceGainControl()
Get the GainControl that posted this event.
Returns:
The GainControl that posted this event.

getDB

public float getDB()
Get the GainControl's new gain value in dB.
Returns:
The GainControl's new gain value, in dB.

getLevel

public float getLevel()
Get the GainControl's new gain value in the level scale.
Returns:
The GainControl's new gain, in the level scale.

getMute

public boolean getMute()
Get the GainControl's new mute value.
Returns:
The GainControl's new mute value.