public class RampBuffer extends BufferFactory
DEFAULT_BUFFER_SIZE
Constructor and Description |
---|
RampBuffer() |
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.
|
protected float |
ramp(float x) |
getDefault
public Buffer generateBuffer(int bufferSize)
BufferFactory
Buffer
of the specified size.generateBuffer
in class BufferFactory
bufferSize
- the buffer size.protected float ramp(float x)
public java.lang.String getName()
BufferFactory
BufferFactory.getDefault()
is called.getName
in class BufferFactory