KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > sound > midi > MetaEventListener


1 /*
2  * @(#)MetaEventListener.java 1.16 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.sound.midi;
9
10 import java.util.EventListener JavaDoc;
11
12
13 /**
14  * The <code>MetaEventListener</code> interface should be implemented
15  * by classes whose instances need to be notified when a <code>{@link Sequencer}</code>
16  * has processed a <code>{@link MetaMessage}</code>.
17  * To register a <code>MetaEventListener</code> object to receive such
18  * notifications, pass it as the argument to the
19  * <code>{@link Sequencer#addMetaEventListener(MetaEventListener) addMetaEventListener}</code>
20  * method of <code>Sequencer</code>.
21  *
22  * @version 1.16, 03/12/19
23  * @author Kara Kytle
24  */

25 public interface MetaEventListener extends EventListener JavaDoc {
26
27     /**
28      * Invoked when a <code>{@link Sequencer}</code> has encountered and processed
29      * a <code>MetaMessage</code> in the <code>{@link Sequence}</code> it is processing.
30      * @param meta the meta-message that the sequencer encountered
31      */

32     public void meta(MetaMessage JavaDoc meta);
33 }
34
Popular Tags