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 double data[];
68 data = new double[size];
70 bankdata[0] = data;
88 data = bankdata[0];
93 * with the specified data array. Only the first
109 data = dataArray;
111 bankdata[0] = data;
116 * with the specified data array. Only the elements between
134 data = dataArray;
136 bankdata[0] = data;
141 * with the specified data arrays. Only the first
158 data = bankdata[0];
163 * with the specified data arrays, size, and per-bank offsets.
167 * <code>offsets</code> array for each data array.
182 data = bankdata[0];
186 * Returns the default (first) <code>double</code> data array.
193 * @return the first double data array.
197 return data;
201 * Returns the data array for the specified bank.
208 * @param bank the data array
209 * @return the data array specified by <code>bank</code>.
217 * Returns the data array for all banks.
224 * @return all data arrays from this data buffer.
232 * Returns the requested data array element from the first
235 * @param i The desired data array element.
236 * @return The data entry as an <code>int</code>.
241 return (int)(data[i+offset]);
245 * Returns the requested data array element from the specified
249 * @param i The desired data array element.
251 * @return The data entry as an <code>int</code>.
260 * Sets the requested data array element in the first (default)
263 * @param i The desired data array element.
264 * @param val The value to be set.
268 public void setElem(int i, int val) {
269 data[i+offset] = (double)val;
274 * Sets the requested data array element in the specified bank
278 * @param i The desired data array element.
279 * @param val The value to be set.
283 public void setElem(int bank, int i, int val) {
284 bankdata[bank][i+offsets[bank]] = (double)val;
289 * Returns the requested data array element from the first
292 * @param i The desired data array element.
294 * @return The data entry as a <code>float</code>.
299 return (float)data[i+offset];
303 * Returns the requested data array element from the specified
307 * @param i The desired data array element.
309 * @return The data entry as a <code>float</code>.
318 * Sets the requested data array element in the first (default)
321 * @param i The desired data array element.
322 * @param val The value to be set.
326 public void setElemFloat(int i, float val) {
327 data[i+offset] = (double)val;
332 * Sets the requested data array element in the specified bank to
336 * @param i The desired data array element.
337 * @param val The value to be set.
341 public void setElemFloat(int bank, int i, float val) {
342 bankdata[bank][i+offsets[bank]] = (double)val;
347 * Returns the requested data array element from the first
350 * @param i The desired data array element.
352 * @return The data entry as a <code>double</code>.
357 return data[i+offset];
361 * Returns the requested data array element from the specified
365 * @param i The desired data array element.
367 * @return The data entry as a <code>double</code>.
376 * Sets the requested data array element in the first (default)
379 * @param i The desired data array element.
380 * @param val The value to be set.
384 public void setElemDouble(int i, double val) {
385 data[i+offset] = val;
390 * Sets the requested data array element in the specified bank to
394 * @param i The desired data array element.
395 * @param val The value to be set.
399 public void setElemDouble(int bank, int i, double val) {
400 bankdata[bank][i+offsets[bank]] = val;