Liking cljdoc? Tell your friends :D

jdk.awt.image.DataBufferDouble

This class extends DataBuffer and stores data internally in double form.

Note that some implementations may function more efficiently if they can maintain control over how the data for an image is stored. For example, optimizations such as caching an image in video memory require that the implementation track all modifications to that data. Other implementations may operate better if they can store the data in locations other than a Java array. To maintain optimum compatibility with various optimizations it is best to avoid constructors and methods which expose the underlying storage as a Java array as noted below in the documentation for those methods.

This class extends DataBuffer and stores data internally
in double form.


Note that some implementations may function more efficiently
if they can maintain control over how the data for an image is
stored.
For example, optimizations such as caching an image in video
memory require that the implementation track all modifications
to that data.
Other implementations may operate better if they can store the
data in locations other than a Java array.
To maintain optimum compatibility with various optimizations
it is best to avoid constructors and methods which expose the
underlying storage as a Java array as noted below in the
documentation for those methods.
raw docstring

->data-buffer-doubleclj

(->data-buffer-double size)
(->data-buffer-double size num-banks)
(->data-buffer-double data-array size offset)

Constructor.

Constructs a double-based DataBuffer with the specified data array. Only the elements between offset and offset size - 1 are available for use by this DataBuffer. The array must be large enough to hold offset size elements.

Note that DataBuffer objects created by this constructor may be incompatible with performance optimizations used by some implementations (such as caching an associated image in video memory).

data-array - An array of doubles to be used as the first and only bank of this DataBuffer. - double[] size - The number of elements of the array to be used. - int offset - The offset of the first element of the array that will be used. - int

Constructor.

Constructs a double-based DataBuffer
 with the specified data array.  Only the elements between
 offset and offset  size - 1 are
 available for use by this DataBuffer.  The array
 must be large enough to hold offset  size elements.

 Note that DataBuffer objects created by this constructor
 may be incompatible with performance
 optimizations used by some implementations (such as caching
 an associated image in video memory).

data-array - An array of doubles to be used as the first and only bank of this DataBuffer. - `double[]`
size - The number of elements of the array to be used. - `int`
offset - The offset of the first element of the array that will be used. - `int`
raw docstring

get-bank-dataclj

(get-bank-data this)

Returns the data array for all banks.

Note that calling this method may cause this DataBuffer object to be incompatible with performance optimizations used by some implementations (such as caching an associated image in video memory).

returns: all data arrays from this data buffer. - double[][]

Returns the data array for all banks.

 Note that calling this method may cause this DataBuffer
 object to be incompatible with performance
 optimizations used by some implementations (such as caching
 an associated image in video memory).

returns: all data arrays from this data buffer. - `double[][]`
raw docstring

get-dataclj

(get-data this)
(get-data this bank)

Returns the data array for the specified bank.

Note that calling this method may cause this DataBuffer object to be incompatible with performance optimizations used by some implementations (such as caching an associated image in video memory).

bank - the data array - int

returns: the data array specified by bank. - double[]

Returns the data array for the specified bank.

 Note that calling this method may cause this DataBuffer
 object to be incompatible with performance
 optimizations used by some implementations (such as caching
 an associated image in video memory).

bank - the data array - `int`

returns: the data array specified by bank. - `double[]`
raw docstring

get-elemclj

(get-elem this i)
(get-elem this bank i)

Returns the requested data array element from the specified bank as an int.

bank - The bank number. - int i - The desired data array element. - int

returns: The data entry as an int. - int

Returns the requested data array element from the specified
 bank as an int.

bank - The bank number. - `int`
i - The desired data array element. - `int`

returns: The data entry as an int. - `int`
raw docstring

get-elem-doubleclj

(get-elem-double this i)
(get-elem-double this bank i)

Returns the requested data array element from the specified bank as a double.

bank - The bank number. - int i - The desired data array element. - int

returns: The data entry as a double. - double

Returns the requested data array element from the specified
 bank as a double.

bank - The bank number. - `int`
i - The desired data array element. - `int`

returns: The data entry as a double. - `double`
raw docstring

get-elem-floatclj

(get-elem-float this i)
(get-elem-float this bank i)

Returns the requested data array element from the specified bank as a float.

bank - The bank number. - int i - The desired data array element. - int

returns: The data entry as a float. - float

Returns the requested data array element from the specified
 bank as a float.

bank - The bank number. - `int`
i - The desired data array element. - `int`

returns: The data entry as a float. - `float`
raw docstring

set-elemclj

(set-elem this i val)
(set-elem this bank i val)

Sets the requested data array element in the specified bank to the given int.

bank - The bank number. - int i - The desired data array element. - int val - The value to be set. - int

Sets the requested data array element in the specified bank
 to the given int.

bank - The bank number. - `int`
i - The desired data array element. - `int`
val - The value to be set. - `int`
raw docstring

set-elem-doubleclj

(set-elem-double this i val)
(set-elem-double this bank i val)

Sets the requested data array element in the specified bank to the given double.

bank - The bank number. - int i - The desired data array element. - int val - The value to be set. - double

Sets the requested data array element in the specified bank to
 the given double.

bank - The bank number. - `int`
i - The desired data array element. - `int`
val - The value to be set. - `double`
raw docstring

set-elem-floatclj

(set-elem-float this i val)
(set-elem-float this bank i val)

Sets the requested data array element in the specified bank to the given float.

bank - The bank number. - int i - The desired data array element. - int val - The value to be set. - float

Sets the requested data array element in the specified bank to
 the given float.

bank - The bank number. - `int`
i - The desired data array element. - `int`
val - The value to be set. - `float`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close