abc.midi
Class TunePlayerAdapter

java.lang.Object
  extended byabc.midi.TunePlayerAdapter
All Implemented Interfaces:
java.util.EventListener, TunePlayerListenerInterface

public class TunePlayerAdapter
extends java.lang.Object
implements TunePlayerListenerInterface

A convenient class to listen to TunePlayer. This listener does nothing. Just extend from it to override your behaviours.


Constructor Summary
TunePlayerAdapter()
           
 
Method Summary
 void notePlayed(NoteAbstract note)
           
 void partPlayed(int begin, int end)
          Invoked when a part of the tune notation is played.
 void playBegin(PlayerStateChangeEvent e)
          Invoked when the playing of a tune has started.
 void playEnd(PlayerStateChangeEvent e)
          Invoked when the playing of a tune is ended.
 void tempoChanged(TempoChangeEvent e)
          Invoked when the playing tempo has changed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TunePlayerAdapter

public TunePlayerAdapter()
Method Detail

playBegin

public void playBegin(PlayerStateChangeEvent e)
Invoked when the playing of a tune has started.

Specified by:
playBegin in interface TunePlayerListenerInterface

playEnd

public void playEnd(PlayerStateChangeEvent e)
Invoked when the playing of a tune is ended.

Specified by:
playEnd in interface TunePlayerListenerInterface

tempoChanged

public void tempoChanged(TempoChangeEvent e)
Invoked when the playing tempo has changed.

Specified by:
tempoChanged in interface TunePlayerListenerInterface

partPlayed

public void partPlayed(int begin,
                       int end)
Invoked when a part of the tune notation is played.

Specified by:
partPlayed in interface TunePlayerListenerInterface

notePlayed

public void notePlayed(NoteAbstract note)
Specified by:
notePlayed in interface TunePlayerListenerInterface