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. package javax.sound.midi;
  8. import java.util.EventListener;
  9. /**
  10. * The <code>MetaEventListener</code> interface should be implemented
  11. * by classes whose instances need to be notified when a <code>{@link Sequencer}</code>
  12. * has processed a <code>{@link MetaMessage}</code>.
  13. * To register a <code>MetaEventListener</code> object to receive such
  14. * notifications, pass it as the argument to the
  15. * <code>{@link Sequencer#addMetaEventListener(MetaEventListener) addMetaEventListener}</code>
  16. * method of <code>Sequencer</code>.
  17. *
  18. * @version 1.16, 03/12/19
  19. * @author Kara Kytle
  20. */
  21. public interface MetaEventListener extends EventListener {
  22. /**
  23. * Invoked when a <code>{@link Sequencer}</code> has encountered and processed
  24. * a <code>MetaMessage</code> in the <code>{@link Sequence}</code> it is processing.
  25. * @param meta the meta-message that the sequencer encountered
  26. */
  27. public void meta(MetaMessage meta);
  28. }