public abstract class AbstractTileOperation extends java.lang.Object implements java.lang.Runnable, ITileOperation
Constructor and Description |
---|
AbstractTileOperation(ITiledImageOperation operation,
int tileIndex,
TileArea area) |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.util.concurrent.ExecutorService threadPool) |
TileArea |
getArea() |
protected PrimitiveType<java.nio.Buffer> |
getBaseType() |
int |
getPixelSize() |
protected ITileOperation |
getPreviousTileOperation() |
protected TileBuffer |
getTileBuffer() |
protected ITiledImageOperation |
getTiledImageOperation() |
int |
getTileIndex() |
ITileOperation |
setDimensions(int dataOffset,
int width,
int height) |
protected void |
setTileBuffer(TileBuffer tileBuffer) |
void |
setWholeImageBuffer(java.nio.Buffer buffer)
set the buffer that describes the whole image and let the tile create a
slice of it from the position where the tile starts in the whole image.
|
void |
waitForResult()
Wait for the result of the tile processing.
|
public AbstractTileOperation(ITiledImageOperation operation, int tileIndex, TileArea area)
public void execute(java.util.concurrent.ExecutorService threadPool)
public TileArea getArea()
public int getPixelSize()
public int getTileIndex()
public void setWholeImageBuffer(java.nio.Buffer buffer)
buffer
- the buffer that describes the whole image.public void waitForResult()
waitForResult
in interface ITileOperation
protected PrimitiveType<java.nio.Buffer> getBaseType()
protected ITileOperation getPreviousTileOperation()
protected TileBuffer getTileBuffer()
protected ITiledImageOperation getTiledImageOperation()
public ITileOperation setDimensions(int dataOffset, int width, int height)
setDimensions
in interface ITileOperation
protected void setTileBuffer(TileBuffer tileBuffer)