Class TileBuffer
- java.lang.Object
-
- nom.tam.image.tile.operation.buffer.TileBuffer
-
- Direct Known Subclasses:
TileBufferColumnBased,TileBufferRowBased
public abstract class TileBuffer extends java.lang.ObjectThis view on the image data represents a tileOperation that is row based, so a tileOperation that fills the whole width of the image.
-
-
Field Summary
Fields Modifier and Type Field Description private PrimitiveType<java.nio.Buffer>baseTypethe tileOperation this view is connected toprivate intheightprivate java.nio.BufferimageBufferprivate intoffsetprivate intwidth
-
Constructor Summary
Constructors Modifier Constructor Description protectedTileBuffer(PrimitiveType<java.nio.Buffer> baseType, int dataOffset, int width, int height)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidfinish()nothing to do in the normal case, overwrite this method if post processing is necessary.PrimitiveType<java.nio.Buffer>getBaseType()abstract java.nio.BuffergetBuffer()intgetHeight()protected java.nio.BuffergetImageBuffer()intgetPixelSize()intgetWidth()TileBuffersetData(java.nio.Buffer value)
-
-
-
Field Detail
-
imageBuffer
private java.nio.Buffer imageBuffer
-
height
private final int height
-
offset
private final int offset
-
baseType
private final PrimitiveType<java.nio.Buffer> baseType
the tileOperation this view is connected to
-
width
private final int width
-
-
Constructor Detail
-
TileBuffer
protected TileBuffer(PrimitiveType<java.nio.Buffer> baseType, int dataOffset, int width, int height)
-
-
Method Detail
-
finish
public void finish()
nothing to do in the normal case, overwrite this method if post processing is necessary.
-
getBaseType
public PrimitiveType<java.nio.Buffer> getBaseType()
-
getBuffer
public abstract java.nio.Buffer getBuffer()
-
getHeight
public int getHeight()
-
getPixelSize
public int getPixelSize()
- Returns:
- the number of pixels in the tileOperation this view represents.
-
getWidth
public int getWidth()
-
setData
public TileBuffer setData(java.nio.Buffer value)
-
getImageBuffer
protected java.nio.Buffer getImageBuffer()
-
-