uk.org.toot.misc.plugin
Class BasicPluginSupport
java.lang.Object
uk.org.toot.misc.plugin.BasicPluginSupport
- All Implemented Interfaces:
- PluginSupport, PluginTransportListener, TempoListener, TimeSignatureListener
- Direct Known Subclasses:
- TootPluginSupport
public class BasicPluginSupport
- extends java.lang.Object
- implements PluginSupport, TempoListener, TimeSignatureListener, PluginTransportListener
A basic implementation of PluginSupport that may be sufficient if an application
is prepared to explicitly invoke the compound methods that notify listeners.
Alternatively specialisations of this class may hook into the application in
a less coupled manner.
- Author:
- st
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicPluginSupport
public BasicPluginSupport()
addTempoListener
public void addTempoListener(TempoListener listener)
- Specified by:
addTempoListener
in interface PluginSupport
removeTempoListener
public void removeTempoListener(TempoListener listener)
- Specified by:
removeTempoListener
in interface PluginSupport
addTimeSignatureListener
public void addTimeSignatureListener(TimeSignatureListener listener)
- Specified by:
addTimeSignatureListener
in interface PluginSupport
removeTimeSignatureListener
public void removeTimeSignatureListener(TimeSignatureListener listener)
- Specified by:
removeTimeSignatureListener
in interface PluginSupport
addTransportListener
public void addTransportListener(PluginTransportListener listener)
- Specified by:
addTransportListener
in interface PluginSupport
removeTransportListener
public void removeTransportListener(PluginTransportListener listener)
- Specified by:
removeTransportListener
in interface PluginSupport
tempoChanged
public void tempoChanged(float newTempo)
- Specified by:
tempoChanged
in interface TempoListener
timeSignatureChanged
public void timeSignatureChanged(int numerator,
int denominator)
- Specified by:
timeSignatureChanged
in interface TimeSignatureListener
play
public void play()
- Specified by:
play
in interface PluginTransportListener
stop
public void stop()
- Specified by:
stop
in interface PluginTransportListener
Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.