Class SignedShortBuffer


  • public class SignedShortBuffer
    extends DataBuffer
    DataBuffer 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 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:
        getElem in class DataBuffer
      • setElem

        public void setElem​(int bank,
                            int i,
                            int val)
        Specified by:
        setElem in class DataBuffer