< prev index next >
src/java.desktop/share/classes/java/awt/image/DataBuffer.java
Print this page
@@ -112,11 +112,11 @@
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
+ * @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,11 +126,11 @@
/**
* Constructs a DataBuffer containing one bank of the specified
* data type and size.
*
- * @param dataType the data type of this <code>DataBuffer</code>
+ * @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,11 +138,11 @@
/**
* 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 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,14 +157,14 @@
/**
* 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 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</code>
+ * {@code DataBuffer}
*/
protected DataBuffer(int dataType, int size, int numBanks) {
this(UNTRACKABLE, dataType, size, numBanks);
}
@@ -172,14 +172,14 @@
* 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 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</code>
+ * {@code DataBuffer}
* @since 1.7
*/
DataBuffer(State initialState,
int dataType, int size, int numBanks)
{
@@ -193,14 +193,14 @@
/**
* 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 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</code>
+ * {@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,14 +209,14 @@
* 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 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</code>
+ * {@code DataBuffer}
* @param offset the offset for each bank
* @since 1.7
*/
DataBuffer(State initialState,
int dataType, int size, int numBanks, int offset)
@@ -236,17 +236,17 @@
* 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 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</code>
+ * {@code DataBuffer}
* @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>
+ * @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,17 +256,17 @@
* 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 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</code>
+ * {@code DataBuffer}
* @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>
+ * @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,11 +281,11 @@
this.offset = offsets[0];
this.offsets = offsets.clone();
}
/** Returns the data type of this DataBuffer.
- * @return the data type of this <code>DataBuffer</code>.
+ * @return the data type of this {@code DataBuffer}.
*/
public int getDataType() {
return dataType;
}
< prev index next >