API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. DataBufferDouble View Source
Author(s)
Since
1.4
Version
Serial
Hierarchy
 Object
      DataBuffer
          DataBufferDouble
Implements
Subclasses
Description
publicfinal class DataBufferDouble
  This class extends DataBuffer and stores data internally in double form.
See also:    DataBuffer
Constructors
public DataBufferDouble (double[][] dataArray, int size)
  Constructs a double-based DataBuffer with the specified data arrays.
public DataBufferDouble (double[][] dataArray, int size, int[] offsets)
  Constructs a double-based DataBuffer with the specified data arrays, size, and per-bank offsets.
public DataBufferDouble (double[] dataArray, int size)
  Constructs a double-based DataBuffer with the specified data array.
public DataBufferDouble (double[] dataArray, int size, int offset)
  Constructs a double-based DataBuffer with the specified data array.
public DataBufferDouble (int size)
  Constructs a double-based DataBuffer with a specified size.
public DataBufferDouble (int size, int numBanks)
  Constructs a double-based DataBuffer with a specified number of banks, all of which are of a specified size.
Methods
Hide/Show inherited methods
public double getBankData ()
  Returns the data array for all banks.
public double getData ()
  Returns the default (first) double data array.
public double 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 as an int.
public int getElem (int bank, int i) [Specified in DataBuffer]
  Returns the requested data array element from the specified bank as an int.
public double getElemDouble (int i) [Overrides DataBuffer]
  Returns the requested data array element from the first (default) bank as a double.
public double getElemDouble (int bank, int i) [Overrides DataBuffer]
  Returns the requested data array element from the specified bank as a double.
public float getElemFloat (int i) [Overrides DataBuffer]
  Returns the requested data array element from the first (default) bank as a float.
public float getElemFloat (int bank, int i) [Overrides 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 given int.
public void setElem (int bank, int i, int val) [Specified in DataBuffer]
  Sets the requested data array element in the specified bank to the given int.
public void setElemDouble (int i, double val) [Overrides DataBuffer]
  Sets the requested data array element in the first (default) bank to the given double.
public void setElemDouble (int bank, int i, double val) [Overrides DataBuffer]
  Sets the requested data array element in the specified bank to the given double.
public void setElemFloat (int i, float val) [Overrides DataBuffer]
  Sets the requested data array element in the first (default) bank to the given float.
public void setElemFloat (int bank, int i, float val) [Overrides DataBuffer]
  Sets the requested data array element in the specified bank to the given float.
pack-privatestatic int toIntArray (Object obj) [Inherited From DataBuffer]
Fields
Hide/Show inherited fields
pack-private double bankdata
The array of data banks.
protected int banks [Inherited From DataBuffer]
The number of banks in this DataBuffer.
pack-private double data
A reference to 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