Package org.jitsi.service.neomedia.event
Class VolumeChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.jitsi.service.neomedia.event.VolumeChangeEvent
-
- All Implemented Interfaces:
Serializable
public class VolumeChangeEvent extends EventObject
Represents the event fired when playback volume value has changed.- Author:
- Damian Minkov
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description VolumeChangeEvent(VolumeControl source, float level, boolean mute)Initializes a new VolumeChangeEvent which is to notify about a specific volume level and its mute state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetLevel()Gets the volume level notified about by this VolumeChangeEvent.booleangetMute()Gets the indicator which determines whether the volume is muted.VolumeControlgetSourceVolumeControl()Gets the VolumeControl which is the source of the change notified about by this VolumeChangeEvent.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
VolumeChangeEvent
public VolumeChangeEvent(VolumeControl source, float level, boolean mute)
Initializes a new VolumeChangeEvent which is to notify about a specific volume level and its mute state.- Parameters:
source- the VolumeControl which is the source of the changelevel- the volume levelmute- true if the volume is muted; otherwise, false- Throws:
IllegalArgumentException- if source is null
-
-
Method Detail
-
getSourceVolumeControl
public VolumeControl getSourceVolumeControl()
Gets the VolumeControl which is the source of the change notified about by this VolumeChangeEvent.- Returns:
- the VolumeControl which is the source of the change notified about by this VolumeChangeEvent
-
getLevel
public float getLevel()
Gets the volume level notified about by this VolumeChangeEvent.- Returns:
- the volume level notified about by this VolumeChangeEvent
-
getMute
public boolean getMute()
Gets the indicator which determines whether the volume is muted.- Returns:
- true if the volume is muted; otherwise, false
-
-