Class TileBuffer

java.lang.Object
nom.tam.image.tile.operation.buffer.TileBuffer
Direct Known Subclasses:
TileBufferRowBased

public abstract class TileBuffer extends Object
(for internal use) A linear buffer that contains data for a single 2D image tile, in row-major format. You can use TileBufferFactory to create appropriate implementations depending on tile and image sizes.
See Also:
  • Constructor Details

    • TileBuffer

      protected TileBuffer(ElementType<Buffer> baseType, int dataOffset, int width, int height)
  • Method Details

    • finish

      public void finish()
      nothing to do in the normal case, overwrite this method if post processing is necessary.
    • getBaseType

      public ElementType<Buffer> getBaseType()
    • getBuffer

      public abstract Buffer getBuffer()
    • getHeight

      public int getHeight()
    • getPixelSize

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

      public int getWidth()
    • setData

      public TileBuffer setData(Buffer value)
    • getImageBuffer

      protected Buffer getImageBuffer()