org.jfugue
Class ParserListenerAdapter

java.lang.Object
  |
  +--org.jfugue.ParserListenerAdapter
All Implemented Interfaces:
ParserListener
Direct Known Subclasses:
PatternTool

public class ParserListenerAdapter
extends java.lang.Object
implements ParserListener

This Adapter class implements all of the methods of ParserListener, but the implementations are blank. If you want something to be a ParserListener, but you don't want to implement all of the ParserListener methods, extend this class.

Version:
2.0
Author:
David Koelle

Constructor Summary
ParserListenerAdapter()
           
 
Method Summary
 void controllerEvent(Controller controller)
          Called when the parser encounters a controller event.
 void instrumentEvent(Instrument instrument)
          Called when the parser encounters a instrument event.
 void noteEvent(Note note)
          Called when the parser encounters an initial note event.
 void parallelNoteEvent(Note note)
          Called when the parser encounters a parallel note event.
 void sequentialNoteEvent(Note note)
          Called when the parser encounters a sequential note event.
 void tempoEvent(Tempo tempo)
          Called when the parser encounters a tempo event.
 void voiceEvent(Voice voice)
          Called when the parser encounters a voice event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserListenerAdapter

public ParserListenerAdapter()
Method Detail

voiceEvent

public void voiceEvent(Voice voice)
Called when the parser encounters a voice event.
Specified by:
voiceEvent in interface ParserListener
Parameters:
voice - the event that has been parsed

tempoEvent

public void tempoEvent(Tempo tempo)
Called when the parser encounters a tempo event.
Specified by:
tempoEvent in interface ParserListener
Parameters:
tempo - the event that has been parsed

instrumentEvent

public void instrumentEvent(Instrument instrument)
Called when the parser encounters a instrument event.
Specified by:
instrumentEvent in interface ParserListener
Parameters:
instrument - the event that has been parsed

controllerEvent

public void controllerEvent(Controller controller)
Called when the parser encounters a controller event.
Specified by:
controllerEvent in interface ParserListener
Parameters:
controller - the event that has been parsed

noteEvent

public void noteEvent(Note note)
Called when the parser encounters an initial note event.
Specified by:
noteEvent in interface ParserListener
Parameters:
note - the event that has been parsed

sequentialNoteEvent

public void sequentialNoteEvent(Note note)
Called when the parser encounters a sequential note event.
Specified by:
sequentialNoteEvent in interface ParserListener
Parameters:
note - the event that has been parsed

parallelNoteEvent

public void parallelNoteEvent(Note note)
Called when the parser encounters a parallel note event.
Specified by:
parallelNoteEvent in interface ParserListener
Parameters:
note - the event that has been parsed