
public void setElem(int bank, int i, int val);
}
Hierar chy: Object→ DataBuffer→ DataBufferByte
DataBufferInt Ja va 1. 2
java.awt.image
This class stores image data in one or more int arrays. The arrays, or banks, of data can
be passed directly to the DataBufferInt() constructor, or they can be created by the con-
structor. You may specify an offset into each array at which the data begins. getElem()
and setElem() allow you to get and set the values of a particular element of a particular
bank. Most applications never use this class directly.
public final class DataBufferInt extends DataBuffer {
// Public Constructors
public DataBufferInt(int size);
public DataBufferInt(int[ ][ ] dataArray, int size);
public DataBufferInt(int[ ] dataArray, int size);
public DataBufferInt(int size, int numBanks);
public DataBufferInt(int[ ][ ] dataArray, int size, int[ ] offsets);
public DataBufferInt(int[ ] dataArray, int size, int offset);
// Public Instance Methods
public int[ ][ ] getBankData();
public int[ ] getData();
public int[ ] getData(int bank);
// Public Methods Overriding DataBuffer
public int getElem(int i);
public int getElem(int bank, int i);
public void setElem(int i, int val);
public void setElem(int bank, int i, int val);
}
Hierar chy: Object→ DataBuffer→ DataBufferInt
DataBufferShor t Ja va 1.2
java.awt.image
This class stores image data in one or more shor t arrays. The arrays, or banks, of data
can be passed ...