java::awt::image::DataBufferShort Class Reference

Inheritance diagram for java::awt::image::DataBufferShort:

Inheritance graph
java::awt::image::DataBufferjava::lang::Object
[legend]
Collaboration diagram for java::awt::image::DataBufferShort:

Collaboration graph
java::awt::image::DataBufferjava::lang::Object
[legend]

List of all members.


Detailed Description

This class extends DataBuffer and stores data internally as shorts.

Public Member Functions

 DataBufferShort (jint size=0, jint numBanks=0)
 Constructs a short-based DataBuffer with the specified number of banks all of which are the specified size.
virtual const Array
< jshort > & 
getData (jint bank=0) const
 Returns the data array for the specified bank.
virtual const Array
< Array< jshort > > & 
getBankData () const
 Returns the data arrays for all banks.
virtual jint getElem (jint i, jint bank=0) const
 Returns the requested data array element from the specified bank as an integer.
virtual void setElem (jint i, jint val, jint bank=0)
 Sets the requested data array element in the specified bank from the given integer.

Protected Attributes

Array< Array< jshort > > bankdata
 REGISTER_MEMBERS

Constructor & Destructor Documentation

java::awt::image::DataBufferShort::DataBufferShort ( jint  size = 0,
jint  numBanks = 0 
)

Constructs a short-based DataBuffer with the specified number of banks all of which are the specified size.

Parameters:
size The size of the banks in the DataBuffer.
numBanks The number of banks in the aDataBuffer.


Member Function Documentation

virtual const Array<jshort>& java::awt::image::DataBufferShort::getData ( jint  bank = 0  )  const [virtual]

Returns the data array for the specified bank.

Parameters:
bank The bank whose data array you want to get.
Returns:
The data array for the specified bank.

virtual const Array<Array<jshort> >& java::awt::image::DataBufferShort::getBankData (  )  const [virtual]

Returns the data arrays for all banks.

Returns:
All of the data arrays.

virtual jint java::awt::image::DataBufferShort::getElem ( jint  i,
jint  bank = 0 
) const [virtual]

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

Parameters:
i the index of the requested data array element
bank the specified bank, default = 0
Returns:
the data array element at the specified index from the specified bank at the specified index.
See also:
setElem(int, int)

setElem(int, int, int)

Implements java::awt::image::DataBuffer.

virtual void java::awt::image::DataBufferShort::setElem ( jint  i,
jint  val,
jint  bank = 0 
) [virtual]

Sets the requested data array element in the specified bank from the given integer.

Parameters:
i the specified index into the data array
val the data to set the element in the specified bank
bank the specified bank at the specified index in the data array
See also:
getElem(int)

getElem(int, int)

Implements java::awt::image::DataBuffer.


Member Data Documentation

Array<Array<jshort> > java::awt::image::DataBufferShort::bankdata [protected]

java::awt::image::DataBufferShort::REGISTER_MEMBERS [protected]

Reimplemented from java::awt::image::DataBuffer.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:22 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3