Package nom.tam.image.tile.operation
Class AbstractTileOperation
java.lang.Object
nom.tam.image.tile.operation.AbstractTileOperation
- All Implemented Interfaces:
Runnable
,ITileOperation
- Direct Known Subclasses:
TileCompressor
,TileDecompressor
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractTileOperation
(ITiledImageOperation operation, int tileIndex, TileArea area) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(ExecutorService threadPool) getArea()
protected PrimitiveType<Buffer>
int
protected ITileOperation
protected TileBuffer
protected ITiledImageOperation
int
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
Wait for the result of the tile processing.
-
Constructor Details
-
AbstractTileOperation
-
-
Method Details
-
execute
-
getArea
-
getPixelSize
public int getPixelSize()- Returns:
- the number of pixels in this tile.
-
getTileIndex
public int getTileIndex() -
setWholeImageBuffer
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. Attention this method is not thread-safe because it changes the position of the buffer parameter.- Parameters:
buffer
- the buffer that describes the whole image.
-
waitForResult
public void waitForResult()Wait for the result of the tile processing.- Specified by:
waitForResult
in interfaceITileOperation
-
getBaseType
-
getPreviousTileOperation
-
getTileBuffer
-
getTiledImageOperation
-
setDimensions
- Specified by:
setDimensions
in interfaceITileOperation
-
setTileBuffer
-