1. /*
  2. * @(#)LineListener.java 1.8 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.sound.sampled;
  8. /**
  9. * Instances of classes that implement the <code>LineListener</code> interface can register to
  10. * receive events when a line's status changes.
  11. *
  12. * @author Kara Kytle
  13. * @version 1.8 03/01/23
  14. *
  15. * @see Line
  16. * @see Line#addLineListener
  17. * @see Line#removeLineListener
  18. * @see LineEvent
  19. *
  20. * @since 1.3
  21. */
  22. /*
  23. * Instances of classes that implement the <code>LineListener</code> interface can register to
  24. * receive events when a line's status changes.
  25. *
  26. * @see Line
  27. * @see Line#addLineListener
  28. * @see Line#removeLineListener
  29. * @see LineEvent
  30. *
  31. * @version 1.8 03/01/23
  32. * @author Kara Kytle
  33. */
  34. public interface LineListener extends java.util.EventListener {
  35. /**
  36. * Informs the listener that a line's state has changed. The listener can then invoke
  37. * <code>LineEvent</code> methods to obtain information about the event.
  38. * @param event a line event that describes the change
  39. */
  40. /*
  41. * Informs the listener that a line's state has changed. The listener can then invoke
  42. * <code>LineEvent</code> methods to obtain information about the event.
  43. * @param event a line event that describes the change
  44. */
  45. public void update(LineEvent event);
  46. } // interface LineListener