| java.lang.Object jj2000.j2k.image.DataBlk jj2000.j2k.image.DataBlkInt
DataBlkInt | public class DataBlkInt extends DataBlk (Code) | | This is an implementation of the DataBlk interface for
signed 32 bit integral data.
The methods in this class are declared final, so that they can
be inlined by inlining compilers.
See Also: DataBlk |
Field Summary | |
public int[] | data |
Constructor Summary | |
public | DataBlkInt() Creates a DataBlkInt with 0 dimensions and no data array
(i.e. | public | DataBlkInt(int ulx, int uly, int w, int h) Creates a DataBlkInt with the specified dimensions and
position. | public | DataBlkInt(DataBlkInt src) Copy constructor. |
Method Summary | |
final public Object | getData() Returns the array containing the data, or null if there is no
data array. | final public int[] | getDataInt() Returns the array containing the data, or null if there is no
data array. | final public int | getDataType() Returns the identifier of this data type, TYPE_INT,
as defined in DataBlk.
The type of data stored. | final public void | setData(Object arr) Sets the data array to the specified one. | final public void | setDataInt(int[] arr) Sets the data array to the specified one. | public String | toString() Returns a string of informations about the DataBlkInt. |
data | public int[] data(Code) | | The array where the data is stored
|
DataBlkInt | public DataBlkInt()(Code) | | Creates a DataBlkInt with 0 dimensions and no data array
(i.e. data is null).
|
DataBlkInt | public DataBlkInt(int ulx, int uly, int w, int h)(Code) | | Creates a DataBlkInt with the specified dimensions and
position. The data array is initialized to an array of size
w*h.
Parameters: ulx - The horizontal coordinate of the upper-left cornerof the block Parameters: uly - The vertical coordinate of the upper-left cornerof the block Parameters: w - The width of the block (in pixels) Parameters: h - The height of the block (in pixels) |
DataBlkInt | public DataBlkInt(DataBlkInt src)(Code) | | Copy constructor.
Creates a DataBlkInt which is the copy of the DataBlkInt
given as paramter.
Parameters: DataBlkInt - the object to be copied. |
getData | final public Object getData()(Code) | | Returns the array containing the data, or null if there is no
data array. The returned array is a int array.
The array of data (a int[]) or null if there is nodata. |
getDataInt | final public int[] getDataInt()(Code) | | Returns the array containing the data, or null if there is no
data array.
The array of data or null if there is no data. |
getDataType | final public int getDataType()(Code) | | Returns the identifier of this data type, TYPE_INT,
as defined in DataBlk.
The type of data stored. AlwaysDataBlk.TYPE_INT See Also: DataBlk.TYPE_INT |
setData | final public void setData(Object arr)(Code) | | Sets the data array to the specified one. The provided array
must be a int array, otherwise a ClassCastException is
thrown. The size of the array is not checked for consistency
with the block's dimensions.
Parameters: arr - The data array to use. Must be a int array. |
setDataInt | final public void setDataInt(int[] arr)(Code) | | Sets the data array to the specified one. The size of the array
is not checked for consistency with the block's dimensions. This
method is more efficient than setData
Parameters: arr - The data array to use. |
toString | public String toString()(Code) | | Returns a string of informations about the DataBlkInt.
|
|
|