Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-927 (Maintenance Release)

javax.media
Class GainChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.media.GainChangeEvent
All Implemented Interfaces:
MediaEvent, java.io.Serializable

public class GainChangeEvent
extends java.util.EventObject
implements MediaEvent

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

See Also:
GainControl, GainChangeListener, Serialized Form

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

Specified by:
getSource in interface MediaEvent
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.

JSR-927 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 927 specification.