summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/java/awt/image/DataBufferUShort.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/java/awt/image/DataBufferUShort.java')
-rw-r--r--libjava/classpath/java/awt/image/DataBufferUShort.java56
1 files changed, 28 insertions, 28 deletions
diff --git a/libjava/classpath/java/awt/image/DataBufferUShort.java b/libjava/classpath/java/awt/image/DataBufferUShort.java
index 981e9e9d2fd..d2cadcf0b5a 100644
--- a/libjava/classpath/java/awt/image/DataBufferUShort.java
+++ b/libjava/classpath/java/awt/image/DataBufferUShort.java
@@ -49,19 +49,19 @@ package java.awt.image;
/**
* A {@link DataBuffer} that uses an array of <code>short</code> primitives
- * to represent each of its banks.
- *
+ * to represent each of its banks.
+ *
* @author Rolf W. Rasmussen (rolfwr@ii.uib.no)
*/
public final class DataBufferUShort extends DataBuffer
{
private short[] data;
private short[][] bankData;
-
+
/**
- * Creates a new data buffer with a single data bank containing the
+ * Creates a new data buffer with a single data bank containing the
* specified number of <code>short</code> elements.
- *
+ *
* @param size the number of elements in the data bank.
*/
public DataBufferUShort(int size)
@@ -73,9 +73,9 @@ public final class DataBufferUShort extends DataBuffer
}
/**
- * Creates a new data buffer with the specified number of data banks,
+ * Creates a new data buffer with the specified number of data banks,
* each containing the specified number of <code>short</code> elements.
- *
+ *
* @param size the number of elements in the data bank.
* @param numBanks the number of data banks.
*/
@@ -88,7 +88,7 @@ public final class DataBufferUShort extends DataBuffer
/**
* Creates a new data buffer backed by the specified data bank.
- *
+ *
* @param dataArray the data bank.
* @param size the number of elements in the data bank.
*
@@ -103,11 +103,11 @@ public final class DataBufferUShort extends DataBuffer
data = dataArray;
bankData[0] = data;
}
-
+
/**
* Creates a new data buffer backed by the specified data bank, with
* the specified offset to the first element.
- *
+ *
* @param dataArray the data bank.
* @param size the number of elements in the data bank.
* @param offset the offset to the first element in the array.
@@ -126,11 +126,11 @@ public final class DataBufferUShort extends DataBuffer
/**
* Creates a new data buffer backed by the specified data banks.
- *
+ *
* @param dataArray the data banks.
* @param size the number of elements in the data bank.
- *
- * @throws NullPointerException if <code>dataArray</code> is
+ *
+ * @throws NullPointerException if <code>dataArray</code> is
* <code>null</code>.
*/
public DataBufferUShort(short[][] dataArray, int size)
@@ -143,12 +143,12 @@ public final class DataBufferUShort extends DataBuffer
/**
* Creates a new data buffer backed by the specified data banks, with
* the specified offsets to the first element in each bank.
- *
+ *
* @param dataArray the data banks.
* @param size the number of elements in the data bank.
* @param offsets the offsets to the first element in each data bank.
- *
- * @throws NullPointerException if <code>dataArray</code> is
+ *
+ * @throws NullPointerException if <code>dataArray</code> is
* <code>null</code>.
*/
public DataBufferUShort(short[][] dataArray, int size, int[] offsets)
@@ -160,17 +160,17 @@ public final class DataBufferUShort extends DataBuffer
/**
* Returns the first data bank.
- *
+ *
* @return The first data bank.
*/
public short[] getData()
{
return data;
}
-
+
/**
* Returns a data bank.
- *
+ *
* @param bank the bank index.
* @return A data bank.
*/
@@ -178,22 +178,22 @@ public final class DataBufferUShort extends DataBuffer
{
return bankData[bank];
}
-
+
/**
* Returns the array underlying this <code>DataBuffer</code>.
- *
+ *
* @return The data banks.
*/
public short[][] getBankData()
{
return bankData;
}
-
+
/**
* Returns an element from the first data bank. The offset (specified in
- * the constructor) is added to <code>i</code> before accessing the
+ * the constructor) is added to <code>i</code> before accessing the
* underlying data array.
- *
+ *
* @param i the element index.
* @return The element.
*/
@@ -204,9 +204,9 @@ public final class DataBufferUShort extends DataBuffer
/**
* Returns an element from a particular data bank. The offset (specified in
- * the constructor) is added to <code>i</code> before accessing the
+ * the constructor) is added to <code>i</code> before accessing the
* underlying data array.
- *
+ *
* @param bank the bank index.
* @param i the element index.
* @return The element.
@@ -221,7 +221,7 @@ public final class DataBufferUShort extends DataBuffer
* Sets an element in the first data bank. The offset (specified in the
* constructor) is added to <code>i</code> before updating the underlying
* data array.
- *
+ *
* @param i the element index.
* @param val the new element value.
*/
@@ -234,7 +234,7 @@ public final class DataBufferUShort extends DataBuffer
* Sets an element in a particular data bank. The offset (specified in the
* constructor) is added to <code>i</code> before updating the underlying
* data array.
- *
+ *
* @param bank the data bank index.
* @param i the element index.
* @param val the new element value.
OpenPOWER on IntegriCloud