java.lang.ObjectThis class extendsjava.awt.image.DataBuffer
java.awt.image.DataBufferInt
DataBuffer and stores data internally
as integers.
| Field Summary | ||
|---|---|---|
| int[] | data | The default data bank. |
| int[][] | bankdata | All data banks |
| Fields inherited from java.awt.image.DataBuffer: |
|---|
| TYPE_BYTE, TYPE_USHORT, TYPE_SHORT, TYPE_INT, TYPE_FLOAT, TYPE_DOUBLE, TYPE_UNDEFINED, dataType, banks, offset, size, offsets, theTrackable |
| Constructor: |
|---|
DataBuffer with a single bank
and the specified size.
|
DataBuffer with the specified number of
banks, all of which are the specified size.
|
DataBuffer with a single bank using the
specified array.
Only the first size elements should be used by accessors of
this DataBuffer. dataArray must be large enough to
hold size elements.
Note that {@code 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).
|
DataBuffer with the specified arrays.
The number of banks will be equal to dataArray.length.
Only the first size elements of each array should be used by
accessors of this DataBuffer.
Note that {@code 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).
|
DataBuffer with a single bank using the
specified array, size, and offset. dataArray must have at least
offset + size elements. Only elements offset
through offset + size - 1
should be used by accessors of this DataBuffer.
Note that {@code 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).
|
DataBuffer with the specified arrays, size,
and offsets.
The number of banks is equal to dataArray.length. Each array must
be at least as large as size + the corresponding offset. There must
be an entry in the offset array for each dataArray entry. For each
bank, only elements offset through
offset + size - 1 should be
used by accessors of this DataBuffer.
Note that {@code 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).
|
| Method from java.awt.image.DataBufferInt Summary: |
|---|
| getBankData, getData, getData, getElem, getElem, setElem, setElem |
| Methods from java.awt.image.DataBuffer: |
|---|
| getDataType, getDataTypeSize, getElem, getElem, getElemDouble, getElemDouble, getElemFloat, getElemFloat, getNumBanks, getOffset, getOffsets, getSize, setElem, setElem, setElemDouble, setElemDouble, setElemFloat, setElemFloat, toIntArray |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.awt.image.DataBufferInt Detail: |
|---|
Note that calling this method may cause this {@code DataBuffer} object to be incompatible with performance optimizations used by some implementations (such as caching an associated image in video memory). |
DataBuffer.
Note that calling this method may cause this {@code DataBuffer} object to be incompatible with performance optimizations used by some implementations (such as caching an associated image in video memory). |
Note that calling this method may cause this {@code DataBuffer} object to be incompatible with performance optimizations used by some implementations (such as caching an associated image in video memory). |
|
|
|
i. |