javax.media
Class GainChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.media.MediaEvent
              |
              +--javax.media.GainChangeEvent
All Implemented Interfaces:
java.io.Serializable

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.

Version:
1.3, 02/08/21
See Also:
GainControl, GainChangeListener, Serialized Form

Field Summary
(package private)  GainControl eventSrc
           
(package private)  float newDB
           
(package private)  float newLevel
           
(package private)  boolean newMute
           
 
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
 

Field Detail

eventSrc

GainControl eventSrc

newMute

boolean newMute

newDB

float newDB

newLevel

float newLevel
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.

Overrides:
getSource in class java.util.EventObject
Returns:
The object that posted this event.

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.