public class TriangleBuffer extends BufferFactory
Buffer
consisting of a triangle wave in the range [-1,1].BufferFactory
DEFAULT_BUFFER_SIZE
Constructor and Description |
---|
TriangleBuffer() |
Modifier and Type | Method and Description |
---|---|
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.
|
getDefault
public Buffer generateBuffer(int bufferSize)
BufferFactory
Buffer
of the specified size.generateBuffer
in class BufferFactory
bufferSize
- the buffer size.public java.lang.String getName()
BufferFactory
BufferFactory.getDefault()
is called.getName
in class BufferFactory