com.xuggle.mediatool
Interface IMediaGenerator

Package class diagram package IMediaGenerator
All Known Subinterfaces:
IMediaCoder, IMediaReader, IMediaTool, IMediaWriter
All Known Implementing Classes:
MediaGeneratorAdapter, MediaToolAdapter

public interface IMediaGenerator

Generates events that IMediaListener objects can subscribe to and react to.

This is the interface that defines how you addListener(IMediaListener) s and removeListener(IMediaListener)s from different IMediaGenerator objects such as IMediaReader.


Method Summary
 boolean addListener(IMediaListener listener)
          Add a media tool listener.
 Collection<IMediaListener> getListeners()
          Get the list of existing media tools listeners.
 boolean removeListener(IMediaListener listener)
          Remove a media tool listener.
 

Method Detail

addListener

boolean addListener(IMediaListener listener)
Add a media tool listener.

Parameters:
listener - the listener to add
Returns:
true if the set of listeners changed as a result of the call

removeListener

boolean removeListener(IMediaListener listener)
Remove a media tool listener.

Parameters:
listener - the listener to remove
Returns:
true if the set of listeners changed as a result of the call

getListeners

Collection<IMediaListener> getListeners()
Get the list of existing media tools listeners.

Returns:
an unmodifiable collection of listeners


Copyright © 2008, 2010 Xuggle