public class BufferFactoryImpl extends Object implements BufferFactory
Constructor and Description |
---|
BufferFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
Buffer |
createBuffer(BufferParam param)
Creates a buffer with the selected parameters
|
BufferParam |
createBufferParams(int w,
int h,
int bandCount,
int dataType,
boolean malloc)
Creates a parameter object for building a buffer.
|
BufferParam |
createMemoryBufferParams(int w,
int h,
int bandCount,
int dataType,
boolean malloc)
Creates a parameter object for building a buffer.
|
BufferParam |
createReadOnlyBufferParams(RasterDataStore store,
int minx,
int miny,
int maxx,
int maxy,
BandList bandList)
Creates a parameter object for building a buffer.
|
public Buffer createBuffer(BufferParam param) throws BufferCreationException
BufferFactory
createBuffer
in interface BufferFactory
BufferCreationException
public BufferParam createBufferParams(int w, int h, int bandCount, int dataType, boolean malloc)
BufferFactory
BufferParam
object.
The buffer will be cached if it's necessarycreateBufferParams
in interface BufferFactory
w
- Widthh
- HeightbandCount
- Number of bandsdataType
- Type of datapublic BufferParam createMemoryBufferParams(int w, int h, int bandCount, int dataType, boolean malloc)
BufferFactory
BufferParam
object.
The buffer will be stored in memory.createMemoryBufferParams
in interface BufferFactory
w
- Widthh
- HeightbandCount
- Number of bandsdataType
- Type of datapublic BufferParam createReadOnlyBufferParams(RasterDataStore store, int minx, int miny, int maxx, int maxy, BandList bandList)
BufferFactory
createReadOnlyBufferParams
in interface BufferFactory
BufferParam