Class AbstractTileOperation

java.lang.Object
nom.tam.image.tile.operation.AbstractTileOperation
All Implemented Interfaces:
Runnable, ITileOperation
Direct Known Subclasses:
TileCompressor, TileDecompressor

public abstract class AbstractTileOperation extends Object implements Runnable, ITileOperation
  • Constructor Details

  • Method Details

    • execute

      public void execute(ExecutorService threadPool)
    • getArea

      public TileArea getArea()
    • getPixelSize

      public int getPixelSize()
      Returns:
      the number of pixels in this tile.
    • getTileIndex

      public int getTileIndex()
    • setWholeImageBuffer

      public 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. 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 interface ITileOperation
    • getBaseType

      protected PrimitiveType<Buffer> getBaseType()
    • getPreviousTileOperation

      protected ITileOperation getPreviousTileOperation()
    • getTileBuffer

      protected TileBuffer getTileBuffer()
    • getTiledImageOperation

      protected ITiledImageOperation getTiledImageOperation()
    • setDimensions

      public ITileOperation setDimensions(int dataOffset, int width, int height)
      Specified by:
      setDimensions in interface ITileOperation
    • setTileBuffer

      protected void setTileBuffer(TileBuffer tileBuffer)