In This Topic
The following tables list the members exposed by DataBlk.
Public Fields
| Name | Description |
| h | The height of the block, in pixels. |
| offset | The offset in the array of the top-left coefficient |
| progressive | The progressive attribute (false by default) |
| scanw | The width of the scanlines used to store the data in the array |
| TYPE_BYTE | The identifier for the byte data type, as signed 8 bits. |
| TYPE_FLOAT | The identifier for the float data type |
| TYPE_INT | The identifier for the int data type, as signed 32 bits. |
| TYPE_SHORT | The identifier for the short data type, as signed 16 bits. |
| ulx | The horizontal coordinate (in pixels) of the upper-left corner of the block of data. This is relative to the component of the image from where this block was filled or is to be filled. |
| uly | The vertical coordinate of the upper-left corner of the block of data. This is relative to the component of the image from where this block was filled or is to be filled. |
| w | The width of the block, in pixels. |
Top
Public Properties
| Name | Description |
| Data | Returns the array containing the data, or null if there is no data. The returned array is of the type returned by getDataType() (e.g., for TYPE_INT, it is a int[]).
Each implementing class should provide a type specific equivalent method (e.g., getDataInt() in DataBlkInt) which returns an array of the correct type explicetely and not through an Object. Sets the data array to the specified one. The type of the specified data array must match the one returned by getDataType() (e.g., for TYPE_INT, it should be a int[]). If the wrong type of array is given a ClassCastException will be thrown.
The size of the array is not necessarily checked for consistency with w and h or any other fields.
Each implementing class should provide a type specific equivalent method (e.g., setDataInt() in DataBlkInt) which takes an array of the correct type explicetely and not through an Object. |
| DataType | Returns the data type of the DataBlk object, as defined in this class. |
Top
Public Methods
| Name | Description |
| getSize | Returns the size in bits, given the data type. The data type must be one defined in this class. An IllegalArgumentException is thrown if type is not defined in this class. |
| ToString | Returns a string of informations about the DataBlk |
Top
See Also