API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. DataBufferUShort View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      DataBuffer
          DataBufferUShort
Implements
Subclasses
Description
publicfinal class DataBufferUShort
  This class extends DataBuffer and stores data internally as shorts.
See also:   
Constructors
public DataBufferUShort (int size)
  Constructs an unsigned-short based DataBuffer with a single bank and the specified size.
public DataBufferUShort (int size, int numBanks)
  Constructs an unsigned-short based DataBuffer with the specified number of banks, all of which are the specified size.
public DataBufferUShort (short[][] dataArray, int size)
  Constructs an unsigned-short based DataBuffer with the specified arrays.
public DataBufferUShort (short[][] dataArray, int size, int[] offsets)
  Constructs an unsigned-short based DataBuffer with specified arrays, size, and offsets.
public DataBufferUShort (short[] dataArray, int size)
  Constructs an unsigned-short based DataBuffer with a single bank using the specified array.
public DataBufferUShort (short[] dataArray, int size, int offset)
  Constructs an unsigned-short based DataBuffer with a single bank using the specified array, size, and offset.
Methods
Hide/Show inherited methods
public short getBankData ()
  Returns the data arrays for all banks.
public short getData ()
  Returns the default (first) unsigned-short data array.
public short getData (int bank)
  Returns the data array for the specified bank.
public int getDataType () [Inherited From DataBuffer]
  Returns the data type of this DataBuffer.
publicstatic int getDataTypeSize (int type) [Inherited From DataBuffer]
  Returns the size (in bits) of the data type, given a datatype tag.
public int getElem (int i) [Overrides DataBuffer]
  Returns the requested data array element from the first (default) bank.
public int getElem (int bank, int i) [Specified in DataBuffer]
  Returns the requested data array element from the specified bank.
public double getElemDouble (int i) [Inherited From DataBuffer]
  Returns the requested data array element from the first (default) bank as a double.
public double getElemDouble (int bank, int i) [Inherited From DataBuffer]
  Returns the requested data array element from the specified bank as a double.
public float getElemFloat (int i) [Inherited From DataBuffer]
  Returns the requested data array element from the first (default) bank as a float.
public float getElemFloat (int bank, int i) [Inherited From DataBuffer]
  Returns the requested data array element from the specified bank as a float.
public int getNumBanks () [Inherited From DataBuffer]
  Returns the number of banks in this DataBuffer.
public int getOffset () [Inherited From DataBuffer]
  Returns the offset of the default bank in array elements.
public int getOffsets () [Inherited From DataBuffer]
  Returns the offsets (in array elements) of all the banks.
public int getSize () [Inherited From DataBuffer]
  Returns the size (in array elements) of all banks.
public void setElem (int i, int val) [Overrides DataBuffer]
  Sets the requested data array element in the first (default) bank to the specified value.
public void setElem (int bank, int i, int val) [Specified in DataBuffer]
  Sets the requested data array element in the specified bank from the given integer.
public void setElemDouble (int i, double val) [Inherited From DataBuffer]
  Sets the requested data array element in the first (default) bank from the given double.
public void setElemDouble (int bank, int i, double val) [Inherited From DataBuffer]
  Sets the requested data array element in the specified bank from the given double.
public void setElemFloat (int i, float val) [Inherited From DataBuffer]
  Sets the requested data array element in the first (default) bank from the given float.
public void setElemFloat (int bank, int i, float val) [Inherited From DataBuffer]
  Sets the requested data array element in the specified bank from the given float.
pack-privatestatic int toIntArray (Object obj) [Inherited From DataBuffer]
Fields
Hide/Show inherited fields
pack-private short bankdata
All data banks
protected int banks [Inherited From DataBuffer]
The number of banks in this DataBuffer.
pack-private short data
The default data bank.
protected int dataType [Inherited From DataBuffer]
The data type of this DataBuffer.
protected int offset [Inherited From DataBuffer]
Offset into default (first) bank from which to get the first element.
protected int offsets [Inherited From DataBuffer]
Offsets into all banks.
protected int size [Inherited From DataBuffer]
Usable size of all banks.
publicfinalstatic int TYPE_BYTE = "0" [Inherited From DataBuffer]
Tag for unsigned byte data.
publicfinalstatic int TYPE_DOUBLE = "5" [Inherited From DataBuffer]
  Tag for double data.
publicfinalstatic int TYPE_FLOAT = "4" [Inherited From DataBuffer]
  Tag for float data.
publicfinalstatic int TYPE_INT = "3" [Inherited From DataBuffer]
Tag for int data.
publicfinalstatic int TYPE_SHORT = "2" [Inherited From DataBuffer]
  Tag for signed short data.
publicfinalstatic int TYPE_UNDEFINED = "32" [Inherited From DataBuffer]
Tag for undefined data.
publicfinalstatic int TYPE_USHORT = "1" [Inherited From DataBuffer]
Tag for unsigned short data.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar