22 |
|
|
23 |
package org.jsampler.event; |
package org.jsampler.event; |
24 |
|
|
25 |
import org.jsampler.Instrument; |
import org.jsampler.OrchestraInstrument; |
26 |
|
|
27 |
|
|
28 |
/** |
/** |
30 |
* @author Grigor Iliev |
* @author Grigor Iliev |
31 |
*/ |
*/ |
32 |
public class OrchestraEvent extends java.util.EventObject { |
public class OrchestraEvent extends java.util.EventObject { |
33 |
private Instrument instrument; |
private OrchestraInstrument instrument; |
34 |
|
|
35 |
/** |
/** |
36 |
* Constructs an <code>OrchestraEvent</code> object. |
* Constructs an <code>OrchestraEvent</code> object. |
45 |
* @param instrument The instrument that has been added, removed or changed. |
* @param instrument The instrument that has been added, removed or changed. |
46 |
*/ |
*/ |
47 |
public |
public |
48 |
OrchestraEvent(Object source, Instrument instrument) { |
OrchestraEvent(Object source, OrchestraInstrument instrument) { |
49 |
super(source); |
super(source); |
50 |
this.instrument = instrument; |
this.instrument = instrument; |
51 |
} |
} |
55 |
* @return The instrument that has been added, removed or changed; |
* @return The instrument that has been added, removed or changed; |
56 |
* <code>null</code> otherwise. |
* <code>null</code> otherwise. |
57 |
*/ |
*/ |
58 |
public Instrument |
public OrchestraInstrument |
59 |
getInstrument() { return instrument; } |
getInstrument() { return instrument; } |
60 |
} |
} |