com.frinika.sequencer
Class SwingSongPositionListenerWrapper

java.lang.Object
  extended by com.frinika.sequencer.SwingSongPositionListenerWrapper
All Implemented Interfaces:
SongPositionListener

public class SwingSongPositionListenerWrapper
extends java.lang.Object
implements SongPositionListener


Constructor Summary
SwingSongPositionListenerWrapper(SongPositionListener listener)
           
 
Method Summary
 void notifyTickPosition(long tick)
          This method is called each time a new tick is played by the sequencer.
 boolean requiresNotificationOnEachTick()
          Your implementation should return true if your listener requires to be notified for each and every tick.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingSongPositionListenerWrapper

public SwingSongPositionListenerWrapper(SongPositionListener listener)
Method Detail

notifyTickPosition

public void notifyTickPosition(long tick)
Description copied from interface: SongPositionListener
This method is called each time a new tick is played by the sequencer. Note that this method should return as soon as possible (immediately).

Specified by:
notifyTickPosition in interface SongPositionListener

requiresNotificationOnEachTick

public boolean requiresNotificationOnEachTick()
Description copied from interface: SongPositionListener
Your implementation should return true if your listener requires to be notified for each and every tick. Otherwise (which is in most cases) return false. WARNING: If you return true on this method, you MUST return absolutely immediately everytime. Otherwise it may result in a halting song.

Specified by:
requiresNotificationOnEachTick in interface SongPositionListener
Returns: