Lines Matching +defs:val +defs:data
31 * This class extends <code>DataBuffer</code> and stores data internally
36 * if they can maintain control over how the data for an image is
40 * to that data.
42 * data in locations other than a Java array.
54 /** The array of data banks. */
57 /** A reference to the default data bank. */
58 float data[];
68 data = new float[size];
70 bankdata[0] = data;
89 data = bankdata[0];
94 * with the specified data array. Only the first
110 data = dataArray;
112 bankdata[0] = data;
117 * with the specified data array. Only the elements between
136 data = dataArray;
138 bankdata[0] = data;
143 * with the specified data arrays. Only the first
160 data = bankdata[0];
165 * with the specified data arrays, size, and per-bank offsets.
169 * array for each data array.
184 data = bankdata[0];
188 * Returns the default (first) <code>float</code> data array.
195 * @return the first float data array.
199 return data;
203 * Returns the data array for the specified bank.
210 * @param bank the data array
211 * @return the data array specified by <code>bank</code>.
219 * Returns the data array for all banks.
226 * @return all data arrays for this data buffer.
234 * Returns the requested data array element from the first
237 * @param i The desired data array element.
239 * @return The data entry as an <code>int</code>.
244 return (int)(data[i+offset]);
248 * Returns the requested data array element from the specified
252 * @param i The desired data array element.
254 * @return The data entry as an <code>int</code>.
263 * Sets the requested data array element in the first (default)
266 * @param i The desired data array element.
267 * @param val The value to be set.
271 public void setElem(int i, int val) {
272 data[i+offset] = (float)val;
277 * Sets the requested data array element in the specified bank to
281 * @param i The desired data array element.
282 * @param val The value to be set.
286 public void setElem(int bank, int i, int val) {
287 bankdata[bank][i+offsets[bank]] = (float)val;
292 * Returns the requested data array element from the first
295 * @param i The desired data array element.
297 * @return The data entry as a <code>float</code>.
302 return data[i+offset];
306 * Returns the requested data array element from the specified
310 * @param i The desired data array element.
312 * @return The data entry as a <code>float</code>.
321 * Sets the requested data array element in the first (default)
324 * @param i The desired data array element.
325 * @param val The value to be set.
329 public void setElemFloat(int i, float val) {
330 data[i+offset] = val;
335 * Sets the requested data array element in the specified bank to
339 * @param i The desired data array element.
340 * @param val The value to be set.
344 public void setElemFloat(int bank, int i, float val) {
345 bankdata[bank][i+offsets[bank]] = val;
350 * Returns the requested data array element from the first
353 * @param i The desired data array element.
355 * @return The data entry as a <code>double</code>.
360 return (double)data[i+offset];
364 * Returns the requested data array element from the specified
368 * @param i The desired data array element.
370 * @return The data entry as a <code>double</code>.
379 * Sets the requested data array element in the first (default)
382 * @param i The desired data array element.
383 * @param val The value to be set.
387 public void setElemDouble(int i, double val) {
388 data[i+offset] = (float)val;
393 * Sets the requested data array element in the specified bank to
397 * @param i The desired data array element.
398 * @param val The value to be set.
402 public void setElemDouble(int bank, int i, double val) {
403 bankdata[bank][i+offsets[bank]] = (float)val;