net.beadsproject.beads.data.buffers
Class SineBuffer

java.lang.Object
  extended by net.beadsproject.beads.data.BufferFactory
      extended by net.beadsproject.beads.data.buffers.SineBuffer

public class SineBuffer
extends BufferFactory

A BufferFactory that generates sine waves.

Author:
ollie
See Also:
BufferFactory

Field Summary
 
Fields inherited from class net.beadsproject.beads.data.BufferFactory
DEFAULT_BUFFER_SIZE
 
Constructor Summary
SineBuffer()
           
 
Method Summary
 Buffer generateBuffer(int bufferSize)
          Subclasses should override this method to generate a Buffer of the specified size.
 java.lang.String getName()
          Subclasses should override this method to generate a name.
 
Methods inherited from class net.beadsproject.beads.data.BufferFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SineBuffer

public SineBuffer()
Method Detail

generateBuffer

public Buffer generateBuffer(int bufferSize)
Description copied from class: BufferFactory
Subclasses should override this method to generate a Buffer of the specified size.

Specified by:
generateBuffer in class BufferFactory
Parameters:
bufferSize - the buffer size.
Returns:
the buffer.

getName

public java.lang.String getName()
Description copied from class: BufferFactory
Subclasses should override this method to generate a name. A default name should always be available for the case where BufferFactory.getDefault() is called.

Specified by:
getName in class BufferFactory
Returns:
the name of the buffer.