java.lang.Object | ||
↳ | java.awt.image.DataBuffer | |
↳ | java.awt.image.DataBufferFloat |
This class extends DataBuffer
and stores data internally
in float
form.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.image.DataBuffer
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.image.DataBuffer
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a
float -based DataBuffer
with a specified size. | |||||||||||
Constructs a
float -based DataBuffer
with a specified number of banks, all of which are of a
specified size. | |||||||||||
Constructs a
float -based DataBuffer
with the specified data array. | |||||||||||
Constructs a
float -based DataBuffer
with the specified data array. | |||||||||||
Constructs a
float -based DataBuffer
with the specified data arrays. | |||||||||||
Constructs a
float -based DataBuffer
with the specified data arrays, size, and per-bank offsets. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the data array for all banks.
| |||||||||||
Returns the data array for the specified bank.
| |||||||||||
Returns the default (first)
float data array. | |||||||||||
Returns the requested data array element from the specified
bank as an
int . | |||||||||||
Returns the requested data array element from the first
(default) bank as an
int . | |||||||||||
Returns the requested data array element from the specified
bank as a
double . | |||||||||||
Returns the requested data array element from the first
(default) bank as a
double . | |||||||||||
Returns the requested data array element from the first
(default) bank as a
float . | |||||||||||
Returns the requested data array element from the specified
bank as a
float . | |||||||||||
Sets the requested data array element in the first (default)
bank to the given
int . | |||||||||||
Sets the requested data array element in the specified bank to
the given
int . | |||||||||||
Sets the requested data array element in the first (default)
bank to the given
double . | |||||||||||
Sets the requested data array element in the specified bank to
the given
double . | |||||||||||
Sets the requested data array element in the first (default)
bank to the given
float . | |||||||||||
Sets the requested data array element in the specified bank to
the given
float . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.image.DataBuffer
| |||||||||||
From class
java.lang.Object
|
Constructs a float
-based DataBuffer
with a specified size.
size | The number of elements in the DataBuffer. |
---|
Constructs a float
-based DataBuffer
with a specified number of banks, all of which are of a
specified size.
size | The number of elements in each bank of the
DataBuffer . |
---|---|
numBanks | The number of banks in the
DataBuffer .
|
Constructs a float
-based DataBuffer
with the specified data array. Only the first
size
elements are available for use by this
DataBuffer
. The array must be large enough to
hold size
elements.
Note that DataBuffer
objects created by this constructor
may be incompatible with performance
optimizations used by some implementations (such as caching
an associated image in video memory).
dataArray | An array of float s to be used as the
first and only bank of this DataBuffer . |
---|---|
size | The number of elements of the array to be used. |
Constructs a float
-based DataBuffer
with the specified data array. Only the elements between
offset
and offset + size - 1
are
available for use by this DataBuffer
. The array
must be large enough to hold offset + size
elements.
Note that DataBuffer
objects created by this constructor
may be incompatible with performance
optimizations used by some implementations (such as caching
an associated image in video memory).
dataArray | An array of float s to be used as the
first and only bank of this DataBuffer . |
---|---|
size | The number of elements of the array to be used. |
offset | The offset of the first element of the array that will be used. |
Constructs a float
-based DataBuffer
with the specified data arrays. Only the first
size
elements of each array are available for use
by this DataBuffer
. The number of banks will be
equal to dataArray.length
.
Note that DataBuffer
objects created by this constructor
may be incompatible with performance
optimizations used by some implementations (such as caching
an associated image in video memory).
dataArray | An array of arrays of float s to be
used as the banks of this DataBuffer . |
---|---|
size | The number of elements of each array to be used. |
Constructs a float
-based DataBuffer
with the specified data arrays, size, and per-bank offsets.
The number of banks is equal to dataArray.length
.
Each array must be at least as large as size
plus the
corresponding offset. There must be an entry in the offsets
array for each data array.
Note that DataBuffer
objects created by this constructor
may be incompatible with performance
optimizations used by some implementations (such as caching
an associated image in video memory).
dataArray | An array of arrays of float s to be
used as the banks of this DataBuffer . |
---|---|
size | The number of elements of each array to be used. |
offsets | An array of integer offsets, one for each bank. |
Returns the data array for all banks.
Note that calling this method may cause this DataBuffer
object to be incompatible with performance
optimizations used by some implementations (such as caching
an associated image in video memory).
Returns the data array for the specified bank.
Note that calling this method may cause this DataBuffer
object to be incompatible with performance
optimizations used by some implementations (such as caching
an associated image in video memory).
bank | the data array |
---|
bank
.
Returns the default (first) float
data array.
Note that calling this method may cause this DataBuffer
object to be incompatible with performance
optimizations used by some implementations (such as caching
an associated image in video memory).
Returns the requested data array element from the specified
bank as an int
.
bank | The bank number. |
---|---|
i | The desired data array element. |
int
.Returns the requested data array element from the first
(default) bank as an int
.
i | The desired data array element. |
---|
int
.Returns the requested data array element from the specified
bank as a double
.
bank | The bank number. |
---|---|
i | The desired data array element. |
double
.Returns the requested data array element from the first
(default) bank as a double
.
i | The desired data array element. |
---|
double
.Returns the requested data array element from the first
(default) bank as a float
.
i | The desired data array element. |
---|
float
.Returns the requested data array element from the specified
bank as a float
.
bank | The bank number. |
---|---|
i | The desired data array element. |
float
.Sets the requested data array element in the first (default)
bank to the given int
.
i | The desired data array element. |
---|---|
val | The value to be set. |
Sets the requested data array element in the specified bank to
the given int
.
bank | The bank number. |
---|---|
i | The desired data array element. |
val | The value to be set. |
Sets the requested data array element in the first (default)
bank to the given double
.
i | The desired data array element. |
---|---|
val | The value to be set. |
Sets the requested data array element in the specified bank to
the given double
.
bank | The bank number. |
---|---|
i | The desired data array element. |
val | The value to be set. |
Sets the requested data array element in the first (default)
bank to the given float
.
i | The desired data array element. |
---|---|
val | The value to be set. |
Sets the requested data array element in the specified bank to
the given float
.
bank | The bank number. |
---|---|
i | The desired data array element. |
val | The value to be set. |