video.modules
Interface VideoOutputModuleInterface

All Superinterfaces:
java.io.Serializable, VDMModule
All Known Implementing Classes:
BouncyCubes, Debug, FloatingIslands3D, FloatingVanishingIslands3D, Mosaic, NoteLine, NoteLine3D, Squares, VideoOutputModule, VideoOutputModule3D

public interface VideoOutputModuleInterface
extends VDMModule

Defines some common methods for video output modules


Method Summary
 void draw(java.awt.Graphics g)
          This is essentially the same as a paint(Graphics g) method and is called even if the module is paused.
 void halt()
          Called to allow the module to free up any resources in use when it is to shut down.
 void init()
          This method should do anything that may affect the environment - open windows and so on.
 void receiveMessage(AudioMessage message)
          Called when some audio data has been recieved.
 
Methods inherited from interface utilities.serializer.VDMModule
getName, getVersion
 

Method Detail

init

void init()
This method should do anything that may affect the environment - open windows and so on.


draw

void draw(java.awt.Graphics g)
This is essentially the same as a paint(Graphics g) method and is called even if the module is paused. You should check to see if the module has been paused before stepping your animation forward.

Parameters:
g - A Graphics object

receiveMessage

void receiveMessage(AudioMessage message)
Called when some audio data has been recieved.

Parameters:
message - The data sent by the audio processor

halt

void halt()
Called to allow the module to free up any resources in use when it is to shut down.