DataBuffer specialization using NIO direct buffer of type DataBuffer#TYPE_INT as storage.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer[] | bankdataBytes
All NIO data banks, |
| private final IntBuffer[] | bankdataInts
All NIO data banks, |
| private final ByteBuffer | dataBytes
Default NIO data bank storage, |
| private final IntBuffer |
| Access | Constructor and Description |
|---|---|
| public | DirectDataBufferInt(final int
The size of the size)DataBuffer.Constructs an nio integer-based |
| public | DirectDataBufferInt(final int
The size of the banks in the size, final int DataBuffer.The number of banks in the a numBanks)DataBuffer.Constructs an nio integer-based |
| public | DirectDataBufferInt(final ByteBuffer
The NIO dataArray, final int ByteBuffer array, holding the integer data for the DataBuffer.The size of the size)DataBuffer bank.Constructs an nio integer-based |
| Modifier and Type | Method and Description |
|---|---|
| public static DirectDataBufferInt. | createBufferedImage(final int width, final int height, final int imageType, Point
origin, if location, final Hashtable<?, ?> properties)null 0/0 is assumed.Creates a |
| public IntBuffer | Returns: The first integer data array.Returns the default (first) int data array in |
| public IntBuffer | |
| public ByteBuffer | Returns: The first integer data array.Returns the default (first) int data array in |
| public ByteBuffer | Returns: The data array for the specified bank.The bank whose data array you want to get. bank)Returns the data array for the specified bank as a |
| public int | Returns: The requested data array element as an integer.The data array element you want to get. i)Overrides java. |
| public int | Returns: The requested data array element as an integer.The bank from which you want to get a data array element. bank, final int The data array element you want to get. i)Implements abstract java. |
| public void | setElem(final int
The data array element you want to set. i, final int The integer value to which you want to set the data array element. val)Overrides java. |
| public void | setElem(final int
The bank in which you want to set the data array element. bank, final int The data array element you want to set. i, final int The integer value to which you want to set the specified data array element. val)Implements abstract java. i.
|
| bankdataBytes | back to summary |
|---|---|
| private final ByteBuffer[] bankdataBytes All NIO data banks, | |
| bankdataInts | back to summary |
|---|---|
| private final IntBuffer[] bankdataInts All NIO data banks, | |
| dataBytes | back to summary |
|---|---|
| private final ByteBuffer dataBytes Default NIO data bank storage, | |
| dataInts | back to summary |
|---|---|
| private final IntBuffer dataInts Default NIO data bank storage, | |
| DirectDataBufferInt | back to summary |
|---|---|
| public DirectDataBufferInt(final int size) Constructs an nio integer-based
| |
| DirectDataBufferInt | back to summary |
|---|---|
| public DirectDataBufferInt(final int size, final int numBanks) Constructs an nio integer-based
| |
| DirectDataBufferInt | back to summary |
|---|---|
| public DirectDataBufferInt(final ByteBuffer dataArray, final int size) Constructs an nio integer-based
Only the first
| |
| createBufferedImage | back to summary |
|---|---|
| public static DirectDataBufferInt. Creates a
Note that due to using the custom storage type
| |
| getData | back to summary |
|---|---|
| public IntBuffer getData() Returns the default (first) int data array in
| |
| getData | back to summary |
|---|---|
| public IntBuffer getData(final int bank) Returns the data array for the specified bank as an
| |
| getDataBytes | back to summary |
|---|---|
| public ByteBuffer getDataBytes() Returns the default (first) int data array in
| |
| getDataBytes | back to summary |
|---|---|
| public ByteBuffer getDataBytes(final int bank) Returns the data array for the specified bank as a
| |
| getElem | back to summary |
|---|---|
| public int getElem(final int i) Overrides java. Returns the requested data array element from the first (default) bank.
| |
| getElem | back to summary |
|---|---|
| public int getElem(final int bank, final int i) Implements abstract java. Returns the requested data array element from the specified bank.
| |
| setElem | back to summary |
|---|---|
| public void setElem(final int i, final int val) Overrides java. Sets the requested data array element in the first (default) bank to the specified value.
| |
| setElem | back to summary |
|---|---|
| public void setElem(final int bank, final int i, final int val) Implements abstract java. Sets the requested data array element in the specified bank
to the integer value
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final DirectDataBufferInt |
| Access | Constructor and Description |
|---|---|
| public | BufferedImageInt(final int customImageType, final ColorModel cm, final DirectDataBufferInt dataBuffer, final WritableRaster raster, final Hashtable<?, ?> properties)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: one of the custom image-type valuesTYPE_INT_ARGB,
TYPE_INT_ARGB_PRE,
TYPE_INT_RGB or TYPE_INT_BGR.
|
| public DirectDataBufferInt | getDataBuffer()
Returns the underlying |
| public String | toString()
Overrides java. String representation of this
BufferedImage object and its values.
|
| customImageType | back to summary |
|---|---|
| pack-priv final int customImageType | |
| dataBuffer | back to summary |
|---|---|
| pack-priv final DirectDataBufferInt dataBuffer | |
| BufferedImageInt | back to summary |
|---|---|
| public BufferedImageInt(final int customImageType, final ColorModel cm, final DirectDataBufferInt dataBuffer, final WritableRaster raster, final Hashtable<?, ?> properties) | |
| getCustomType | back to summary |
|---|---|
public int getCustomType()
| |
| getDataBuffer | back to summary |
|---|---|
| public DirectDataBufferInt getDataBuffer() Returns the underlying | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a | |
| Access | Constructor and Description |
|---|---|
| protected | DirectWritableRaster(final SampleModel sampleModel, final DirectDataBufferInt dataBuffer, final Point origin)
|
| DirectWritableRaster | back to summary |
|---|---|
| protected DirectWritableRaster(final SampleModel sampleModel, final DirectDataBufferInt dataBuffer, final Point origin) | |