[]
This class provides a default implementation for the methods of the 'MultiResImgData' interface. The default implementation consists just in returning the value of the source, where the source is another 'MultiResImgData' object.
<p>This abstract class can be used to facilitate the development of other
classes that implement 'MultiResImgData'. For example a dequantizer can
inherit from this class and all the trivial methods do not have to be
reimplemented.</p><p>If the default implementation of a method provided in this class does
not suit a particular implementation of the 'MultiResImgData' interface,
the method can be overriden to implement the proper behaviour.</p>
public abstract class MultiResImgDataAdapter : MultiResImgData
Name | Description |
---|---|
MultiResImgDataAdapter(MultiResImgData) | Instantiates the MultiResImgDataAdapter object specifying the MultiResImgData source. |
Name | Description |
---|---|
mressrc | The MultiResImgData source |
tIdx | Index of the current tile |
Name | Description |
---|---|
NomTileHeight | Returns the nominal tiles height |
NomTileWidth | Returns the nominal tiles width |
NumComps | Returns the number of components in the image.
|
TileIdx | Returns the index of the current tile, relative to a standard scan-line order.
|
TilePartULX | Returns the horizontal tile partition offset in the reference grid |
TilePartULY | Returns the vertical tile partition offset in the reference grid |
Name | Description |
---|---|
getCompImgHeight(int, int) | Returns the height in pixels of the specified component in the overall image, for the given resolution level. |
getCompImgWidth(int, int) | Returns the width in pixels of the specified component in the overall image, for the given resolution level.
|
getCompSubsX(int) | Returns the component subsampling factor in the horizontal direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details.
|
getCompSubsY(int) | Returns the component subsampling factor in the vertical direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details.
|
getImgHeight(int) | Returns the overall height of the image in pixels, for the given resolution level. This is the image's height without accounting for any component subsampling or tiling.
|
getImgULX(int) | Returns the horizontal coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid at the specified resolution level.
|
getImgULY(int) | Returns the vertical coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid at the specified resolution level.
|
getImgWidth(int) | Returns the overall width of the image in pixels, for the given resolution level. This is the image's width without accounting for any component subsampling or tiling.
|
getNumTiles() | Returns the total number of tiles in the image.
|
getNumTiles(Coord) | Returns the number of tiles in the horizontal and vertical directions.
|
getResULX(int, int) | Returns the horizontal coordinate of the upper-left corner of the specified resolution level in the given component of the current tile.
|
getResULY(int, int) | Returns the vertical coordinate of the upper-left corner of the specified resolution in the given component of the current tile.
|
getSynSubbandTree(int, int) | Returns the specified synthesis subband tree |
getTile(Coord) | Returns the indexes of the current tile. These are the horizontal and vertical indexes of the current tile.
|
getTileCompHeight(int, int, int) | Returns the height in pixels of the specified tile-component for the given resolution level.
|
getTileCompWidth(int, int, int) | Returns the width in pixels of the specified tile-component for the given resolution level.
|
getTileHeight(int) | Returns the overall height of the current tile in pixels, for the given resolution level. This is the tile's height without accounting for any component subsampling.
|
getTileWidth(int) | Returns the overall width of the current tile in pixels, for the given resolution level. This is the tile's width without accounting for any component subsampling.
|
nextTile() | Advances to the next tile, in standard scan-line order (by rows then columns). An NoNextElementException is thrown if the current tile is the last one (i.e. there is no next tile).
|
setTile(int, int) | Changes the current tile, given the new indexes. An IllegalArgumentException is thrown if the indexes do not correspond to a valid tile.
|