jlscp
v0.7a

org.linuxsampler.lscp.event
Class GlobalInfoEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.linuxsampler.lscp.event.GlobalInfoEvent
All Implemented Interfaces:
java.io.Serializable

public class GlobalInfoEvent
extends java.util.EventObject

A semantic event which indicates changes to the global settings of the sampler.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GlobalInfoEvent(java.lang.Object source)
          Constructs a GlobalInfoEvent object.
GlobalInfoEvent(java.lang.Object source, float volume)
          Constructs a GlobalInfoEvent object.
 
Method Summary
 float getVolume()
          Gets the new global volume value of the sampler.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalInfoEvent

public GlobalInfoEvent(java.lang.Object source)
Constructs a GlobalInfoEvent object.

Parameters:
source - The object that originated the event.

GlobalInfoEvent

public GlobalInfoEvent(java.lang.Object source,
                       float volume)
Constructs a GlobalInfoEvent object.

Parameters:
source - The object that originated the event.
volume - Specifies the new global volume of the sampler.
Method Detail

getVolume

public float getVolume()
Gets the new global volume value of the sampler. The returned value is only valid when GlobalInfoListener.volumeChanged(org.linuxsampler.lscp.event.GlobalInfoEvent) event is fired.

Returns:
The new global volume value of the sampler.

jlscp
v0.7a

Copyright © 2007 Grigor Iliev. All rights reserved.