com.groovemanager.sampled.nondestructive
Class AbstractSource

java.lang.Object
  extended by com.groovemanager.sampled.nondestructive.AbstractSource
All Implemented Interfaces:
CutListSource
Direct Known Subclasses:
AudioFileSource, ConcatSource, ConvertedSource, CutList, SubSource

public abstract class AbstractSource
extends java.lang.Object
implements CutListSource

Abstract superclass for the implementation of a CutListSource

Author:
Manu Robledo

Field Summary
private  java.util.ArrayList listeners
          List of ModificationListeners registered with this CutListSource
 
Constructor Summary
AbstractSource()
           
 
Method Summary
 void addModificationListener(ModificationListener listener)
          Add a ModificationListener to this source that will be notified of any changes
protected  void notifyListeners()
          Notify all registered ModificationListeners about a change made to this CutListSource
 void removeModificationListener(ModificationListener listener)
          Remove a ModificationListener from this source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.groovemanager.sampled.nondestructive.CutListSource
duplicate, getAudioInputStream, getLength, getWaveForm, isReady, replaceFile, usesFile
 

Field Detail

listeners

private java.util.ArrayList listeners
List of ModificationListeners registered with this CutListSource

Constructor Detail

AbstractSource

public AbstractSource()
Method Detail

addModificationListener

public void addModificationListener(ModificationListener listener)
Description copied from interface: CutListSource
Add a ModificationListener to this source that will be notified of any changes

Specified by:
addModificationListener in interface CutListSource
Parameters:
listener - The ModificationListener to add
See Also:
CutListSource.addModificationListener(com.groovemanager.sampled.nondestructive.ModificationListener)

notifyListeners

protected void notifyListeners()
Notify all registered ModificationListeners about a change made to this CutListSource


removeModificationListener

public void removeModificationListener(ModificationListener listener)
Description copied from interface: CutListSource
Remove a ModificationListener from this source

Specified by:
removeModificationListener in interface CutListSource
Parameters:
listener - The ModificationListener to remove
See Also:
CutListSource.removeModificationListener(com.groovemanager.sampled.nondestructive.ModificationListener)