Package ome.codecs.gui
Class SignedShortBuffer
- java.lang.Object
-
- java.awt.image.DataBuffer
-
- ome.codecs.gui.SignedShortBuffer
-
public class SignedShortBuffer extends java.awt.image.DataBufferDataBuffer that stores signed shorts. SignedShortBuffer serves the same purpose as java.awt.image.DataBufferShort; the only difference is that SignedShortBuffer's getType() method returns DataBuffer.TYPE_USHORT. This is a workaround for the fact that java.awt.image.BufferedImage does not support DataBuffers with type DataBuffer.TYPE_SHORT.
-
-
Constructor Summary
Constructors Constructor Description SignedShortBuffer(int size)SignedShortBuffer(int size, int numbanks)SignedShortBuffer(short[][] data, int size)SignedShortBuffer(short[][] data, int size, int[] offsets)SignedShortBuffer(short[] data, int size)SignedShortBuffer(short[] data, int size, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short[]getData()short[]getData(int bank)intgetElem(int bank, int i)voidsetElem(int bank, int i, int val)
-
-
-
Constructor Detail
-
SignedShortBuffer
public SignedShortBuffer(int size)
-
SignedShortBuffer
public SignedShortBuffer(int size, int numbanks)
-
SignedShortBuffer
public SignedShortBuffer(short[] data, int size)
-
SignedShortBuffer
public SignedShortBuffer(short[] data, int size, int offset)
-
SignedShortBuffer
public SignedShortBuffer(short[][] data, int size)
-
SignedShortBuffer
public SignedShortBuffer(short[][] data, int size, int[] offsets)
-
-
Method Detail
-
getData
public short[] getData()
-
getData
public short[] getData(int bank)
-
getElem
public int getElem(int bank, int i)- Specified by:
getElemin classjava.awt.image.DataBuffer
-
setElem
public void setElem(int bank, int i, int val)- Specified by:
setElemin classjava.awt.image.DataBuffer
-
-