jdk/src/java.desktop/share/classes/javax/sound/midi/MetaEventListener.java
changeset 26037 508779ce6619
parent 26003 d630c97424bd
parent 25859 3317bb8137f4
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2002, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    25 
    25 
    26 package javax.sound.midi;
    26 package javax.sound.midi;
    27 
    27 
    28 import java.util.EventListener;
    28 import java.util.EventListener;
    29 
    29 
    30 
       
    31 /**
    30 /**
    32  * The <code>MetaEventListener</code> interface should be implemented
    31  * The {@code MetaEventListener} interface should be implemented by classes
    33  * by classes whose instances need to be notified when a <code>{@link Sequencer}</code>
    32  * whose instances need to be notified when a {@link Sequencer} has processed a
    34  * has processed a <code>{@link MetaMessage}</code>.
    33  * {@link MetaMessage}. To register a {@code MetaEventListener} object to
    35  * To register a <code>MetaEventListener</code> object to receive such
    34  * receive such notifications, pass it as the argument to the
    36  * notifications, pass it as the argument to the
    35  * {@link Sequencer#addMetaEventListener(MetaEventListener)
    37  * <code>{@link Sequencer#addMetaEventListener(MetaEventListener) addMetaEventListener}</code>
    36  * addMetaEventListener} method of {@code Sequencer}.
    38  * method of <code>Sequencer</code>.
       
    39  *
    37  *
    40  * @author Kara Kytle
    38  * @author Kara Kytle
    41  */
    39  */
    42 public interface MetaEventListener extends EventListener {
    40 public interface MetaEventListener extends EventListener {
    43 
    41 
    44     /**
    42     /**
    45      * Invoked when a <code>{@link Sequencer}</code> has encountered and processed
    43      * Invoked when a {@link Sequencer} has encountered and processed a
    46      * a <code>MetaMessage</code> in the <code>{@link Sequence}</code> it is processing.
    44      * {@code MetaMessage} in the {@code Sequence} it is processing.
    47      * @param meta the meta-message that the sequencer encountered
    45      *
       
    46      * @param  meta the meta-message that the sequencer encountered
    48      */
    47      */
    49     public void meta(MetaMessage meta);
    48     void meta(MetaMessage meta);
    50 }
    49 }