org.jfugue.demo
Class DurationPatternTool

java.lang.Object
  |
  +--org.jfugue.ParserListenerAdapter
        |
        +--org.jfugue.PatternTool
              |
              +--org.jfugue.demo.DurationPatternTool
All Implemented Interfaces:
ParserListener

public class DurationPatternTool
extends PatternTool


Constructor Summary
DurationPatternTool()
           
 
Method Summary
 java.lang.String getDescription()
          Indicates what this PatternTool does.
 java.lang.Object getResult()
          Returns the result of the pattern tool after it has been executed on a pattern.
 void noteEvent(Note note)
          Called when the parser encounters an initial note event.
 void reset()
          Resets the variables in a subclass of PatternTool.
 void voiceEvent(Voice voice)
          Called when the parser encounters a voice event.
 
Methods inherited from class org.jfugue.PatternTool
execute
 
Methods inherited from class org.jfugue.ParserListenerAdapter
controllerEvent, instrumentEvent, parallelNoteEvent, sequentialNoteEvent, tempoEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DurationPatternTool

public DurationPatternTool()
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from class: PatternTool
Indicates what this PatternTool does.
Overrides:
getDescription in class PatternTool
Following copied from class: org.jfugue.PatternTool
Returns:
A String giving a quick description of this tool

voiceEvent

public void voiceEvent(Voice voice)
Description copied from class: ParserListenerAdapter
Called when the parser encounters a voice event.
Overrides:
voiceEvent in class ParserListenerAdapter
Following copied from class: org.jfugue.ParserListenerAdapter
Parameters:
voice - the event that has been parsed

noteEvent

public void noteEvent(Note note)
Description copied from class: ParserListenerAdapter
Called when the parser encounters an initial note event.
Overrides:
noteEvent in class ParserListenerAdapter
Following copied from class: org.jfugue.ParserListenerAdapter
Parameters:
note - the event that has been parsed

reset

public void reset()
Description copied from class: PatternTool
Resets the variables in a subclass of PatternTool. This method is called every time this class's execute() method is called.
Overrides:
reset in class PatternTool

getResult

public java.lang.Object getResult()
Description copied from class: PatternTool
Returns the result of the pattern tool after it has been executed on a pattern.
Overrides:
getResult in class PatternTool
Following copied from class: org.jfugue.PatternTool
Returns:
the result of executing this pattern tool on a pattern