javax.media
Class GainChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.media.GainChangeEvent
All Implemented Interfaces:
Serializable, MediaEvent

public class GainChangeEvent
extends EventObject
implements MediaEvent

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

Version:
1.15, 05/10/17
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.
 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 Object getSource()
Get the object that posted this event.

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


Copyright © 2011. All Rights Reserved.