public class CurveBuffer extends BufferFactory
Buffer
of the function x^e^(-c) where x is in the range [0,1] and c is a curviness factor.DEFAULT_BUFFER_SIZE
Constructor and Description |
---|
CurveBuffer(float curviness)
Instantiates a new curve buffer.
|
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 CurveBuffer(float curviness)
curviness
- the curviness.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