< prev index next >

src/java.desktop/share/classes/java/awt/image/DataBuffer.java

Print this page

        

*** 112,122 **** private static final int dataTypeSize[] = {8,16,16,32,32,64}; /** Returns the size (in bits) of the data type, given a datatype tag. * @param type the value of one of the defined datatype tags * @return the size of the data type ! * @throws IllegalArgumentException if <code>type</code> is less than * zero or greater than {@link #TYPE_DOUBLE} */ public static int getDataTypeSize(int type) { if (type < TYPE_BYTE || type > TYPE_DOUBLE) { throw new IllegalArgumentException("Unknown data type "+type); --- 112,122 ---- private static final int dataTypeSize[] = {8,16,16,32,32,64}; /** Returns the size (in bits) of the data type, given a datatype tag. * @param type the value of one of the defined datatype tags * @return the size of the data type ! * @throws IllegalArgumentException if {@code type} is less than * zero or greater than {@link #TYPE_DOUBLE} */ public static int getDataTypeSize(int type) { if (type < TYPE_BYTE || type > TYPE_DOUBLE) { throw new IllegalArgumentException("Unknown data type "+type);
*** 126,136 **** /** * Constructs a DataBuffer containing one bank of the specified * data type and size. * ! * @param dataType the data type of this <code>DataBuffer</code> * @param size the size of the banks */ protected DataBuffer(int dataType, int size) { this(UNTRACKABLE, dataType, size); } --- 126,136 ---- /** * Constructs a DataBuffer containing one bank of the specified * data type and size. * ! * @param dataType the data type of this {@code DataBuffer} * @param size the size of the banks */ protected DataBuffer(int dataType, int size) { this(UNTRACKABLE, dataType, size); }
*** 138,148 **** /** * Constructs a DataBuffer containing one bank of the specified * data type and size with the indicated initial {@link State State}. * * @param initialState the initial {@link State State} state of the data ! * @param dataType the data type of this <code>DataBuffer</code> * @param size the size of the banks * @since 1.7 */ DataBuffer(State initialState, int dataType, int size) --- 138,148 ---- /** * Constructs a DataBuffer containing one bank of the specified * data type and size with the indicated initial {@link State State}. * * @param initialState the initial {@link State State} state of the data ! * @param dataType the data type of this {@code DataBuffer} * @param size the size of the banks * @since 1.7 */ DataBuffer(State initialState, int dataType, int size)
*** 157,170 **** /** * Constructs a DataBuffer containing the specified number of * banks. Each bank has the specified size and an offset of 0. * ! * @param dataType the data type of this <code>DataBuffer</code> * @param size the size of the banks * @param numBanks the number of banks in this ! * <code>DataBuffer</code> */ protected DataBuffer(int dataType, int size, int numBanks) { this(UNTRACKABLE, dataType, size, numBanks); } --- 157,170 ---- /** * Constructs a DataBuffer containing the specified number of * banks. Each bank has the specified size and an offset of 0. * ! * @param dataType the data type of this {@code DataBuffer} * @param size the size of the banks * @param numBanks the number of banks in this ! * {@code DataBuffer} */ protected DataBuffer(int dataType, int size, int numBanks) { this(UNTRACKABLE, dataType, size, numBanks); }
*** 172,185 **** * Constructs a DataBuffer containing the specified number of * banks with the indicated initial {@link State State}. * Each bank has the specified size and an offset of 0. * * @param initialState the initial {@link State State} state of the data ! * @param dataType the data type of this <code>DataBuffer</code> * @param size the size of the banks * @param numBanks the number of banks in this ! * <code>DataBuffer</code> * @since 1.7 */ DataBuffer(State initialState, int dataType, int size, int numBanks) { --- 172,185 ---- * Constructs a DataBuffer containing the specified number of * banks with the indicated initial {@link State State}. * Each bank has the specified size and an offset of 0. * * @param initialState the initial {@link State State} state of the data ! * @param dataType the data type of this {@code DataBuffer} * @param size the size of the banks * @param numBanks the number of banks in this ! * {@code DataBuffer} * @since 1.7 */ DataBuffer(State initialState, int dataType, int size, int numBanks) {
*** 193,206 **** /** * Constructs a DataBuffer that contains the specified number * of banks. Each bank has the specified datatype, size and offset. * ! * @param dataType the data type of this <code>DataBuffer</code> * @param size the size of the banks * @param numBanks the number of banks in this ! * <code>DataBuffer</code> * @param offset the offset for each bank */ protected DataBuffer(int dataType, int size, int numBanks, int offset) { this(UNTRACKABLE, dataType, size, numBanks, offset); } --- 193,206 ---- /** * Constructs a DataBuffer that contains the specified number * of banks. Each bank has the specified datatype, size and offset. * ! * @param dataType the data type of this {@code DataBuffer} * @param size the size of the banks * @param numBanks the number of banks in this ! * {@code DataBuffer} * @param offset the offset for each bank */ protected DataBuffer(int dataType, int size, int numBanks, int offset) { this(UNTRACKABLE, dataType, size, numBanks, offset); }
*** 209,222 **** * Constructs a DataBuffer that contains the specified number * of banks with the indicated initial {@link State State}. * Each bank has the specified datatype, size and offset. * * @param initialState the initial {@link State State} state of the data ! * @param dataType the data type of this <code>DataBuffer</code> * @param size the size of the banks * @param numBanks the number of banks in this ! * <code>DataBuffer</code> * @param offset the offset for each bank * @since 1.7 */ DataBuffer(State initialState, int dataType, int size, int numBanks, int offset) --- 209,222 ---- * Constructs a DataBuffer that contains the specified number * of banks with the indicated initial {@link State State}. * Each bank has the specified datatype, size and offset. * * @param initialState the initial {@link State State} state of the data ! * @param dataType the data type of this {@code DataBuffer} * @param size the size of the banks * @param numBanks the number of banks in this ! * {@code DataBuffer} * @param offset the offset for each bank * @since 1.7 */ DataBuffer(State initialState, int dataType, int size, int numBanks, int offset)
*** 236,252 **** * Constructs a DataBuffer which contains the specified number * of banks. Each bank has the specified datatype and size. The * offset for each bank is specified by its respective entry in * the offsets array. * ! * @param dataType the data type of this <code>DataBuffer</code> * @param size the size of the banks * @param numBanks the number of banks in this ! * <code>DataBuffer</code> * @param offsets an array containing an offset for each bank. ! * @throws ArrayIndexOutOfBoundsException if <code>numBanks</code> ! * does not equal the length of <code>offsets</code> */ protected DataBuffer(int dataType, int size, int numBanks, int offsets[]) { this(UNTRACKABLE, dataType, size, numBanks, offsets); } --- 236,252 ---- * Constructs a DataBuffer which contains the specified number * of banks. Each bank has the specified datatype and size. The * offset for each bank is specified by its respective entry in * the offsets array. * ! * @param dataType the data type of this {@code DataBuffer} * @param size the size of the banks * @param numBanks the number of banks in this ! * {@code DataBuffer} * @param offsets an array containing an offset for each bank. ! * @throws ArrayIndexOutOfBoundsException if {@code numBanks} ! * does not equal the length of {@code offsets} */ protected DataBuffer(int dataType, int size, int numBanks, int offsets[]) { this(UNTRACKABLE, dataType, size, numBanks, offsets); }
*** 256,272 **** * Each bank has the specified datatype and size. The * offset for each bank is specified by its respective entry in * the offsets array. * * @param initialState the initial {@link State State} state of the data ! * @param dataType the data type of this <code>DataBuffer</code> * @param size the size of the banks * @param numBanks the number of banks in this ! * <code>DataBuffer</code> * @param offsets an array containing an offset for each bank. ! * @throws ArrayIndexOutOfBoundsException if <code>numBanks</code> ! * does not equal the length of <code>offsets</code> * @since 1.7 */ DataBuffer(State initialState, int dataType, int size, int numBanks, int offsets[]) { --- 256,272 ---- * Each bank has the specified datatype and size. The * offset for each bank is specified by its respective entry in * the offsets array. * * @param initialState the initial {@link State State} state of the data ! * @param dataType the data type of this {@code DataBuffer} * @param size the size of the banks * @param numBanks the number of banks in this ! * {@code DataBuffer} * @param offsets an array containing an offset for each bank. ! * @throws ArrayIndexOutOfBoundsException if {@code numBanks} ! * does not equal the length of {@code offsets} * @since 1.7 */ DataBuffer(State initialState, int dataType, int size, int numBanks, int offsets[]) {
*** 281,291 **** this.offset = offsets[0]; this.offsets = offsets.clone(); } /** Returns the data type of this DataBuffer. ! * @return the data type of this <code>DataBuffer</code>. */ public int getDataType() { return dataType; } --- 281,291 ---- this.offset = offsets[0]; this.offsets = offsets.clone(); } /** Returns the data type of this DataBuffer. ! * @return the data type of this {@code DataBuffer}. */ public int getDataType() { return dataType; }
< prev index next >