JSampler
v0.8a

org.jsampler.event
Class OrchestraEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jsampler.event.OrchestraEvent
All Implemented Interfaces:
java.io.Serializable

public class OrchestraEvent
extends java.util.EventObject

A semantic event which indicates orchestra changes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
OrchestraEvent(java.lang.Object source)
          Constructs an OrchestraEvent object.
OrchestraEvent(java.lang.Object source, OrchestraInstrument instrument)
          Constructs an OrchestraEvent object.
 
Method Summary
 OrchestraInstrument getInstrument()
          Returns the instrument that has been added, removed or changed.
 
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

OrchestraEvent

public OrchestraEvent(java.lang.Object source)
Constructs an OrchestraEvent object.

Parameters:
source - The object that originated the event.

OrchestraEvent

public OrchestraEvent(java.lang.Object source,
                      OrchestraInstrument instrument)
Constructs an OrchestraEvent object.

Parameters:
source - The object that originated the event.
instrument - The instrument that has been added, removed or changed.
Method Detail

getInstrument

public OrchestraInstrument getInstrument()
Returns the instrument that has been added, removed or changed.

Returns:
The instrument that has been added, removed or changed; null otherwise.

JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.