public abstract class AbstractTileOperation extends Object implements Runnable, ITileOperation
Constructor and Description |
---|
AbstractTileOperation(ITiledImageOperation operation,
int tileIndex,
TileArea area) |
Modifier and Type | Method and Description |
---|---|
void |
execute(ExecutorService threadPool) |
TileArea |
getArea() |
protected PrimitiveType<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(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(ExecutorService threadPool)
public TileArea getArea()
public int getPixelSize()
public int getTileIndex()
public void setWholeImageBuffer(Buffer buffer)
buffer
- the buffer that describes the whole image.public void waitForResult()
waitForResult
in interface ITileOperation
protected PrimitiveType<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)
Copyright © 1996–2016 nom-tam-fits. All rights reserved.