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


Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.