| javax.imageio.ImageReadParam org.geotools.coverage.grid.io.imageio.GeoToolsReadParams
GeoToolsReadParams | abstract public class GeoToolsReadParams extends ImageReadParam (Code) | | This class is the base class for building adapters/extensions to the ImageIO
ImageReadParam class for controlling the processing of reading a
coverage from an
ImageReader .
author: Simone Giannecchini since: 2.3.x |
Method Summary | |
public Dimension[] | getPreferredTileSizes() Returns an array of Dimension s indicating the legal size
ranges for tiles. | public int | getTileHeight() Returns the width of each tile in an raster as it will be reader If
tiling parameters have not been set, an
IllegalStateException is thrown. | public int | getTileWidth() Returns the width of each tile in an raster as it will be reader If
tiling parameters have not been set, an
IllegalStateException is thrown. | public void | setTiling(int tileWidth, int tileHeight) Specifies that the image should be tiled. |
preferredTileSizes | protected Dimension[] preferredTileSizes(Code) | | An array of preferred tile size range pairs. The default value is
null , which indicates that there are no preferred sizes.
If the value is non-null , it must have an even length of
at least two.
Subclasses that do not support reading tiles may ignore this value.
See Also: GeoToolsReadParams.getPreferredTileSizes |
tileHeight | protected int tileHeight(Code) | | The height of each tile if tiling has been set, or 0 otherwise. The
initial value is 0 .
Subclasses that do not support tiling may ignore this value.
|
tileWidth | protected int tileWidth(Code) | | The width of each tile if tiling has been set, or 0 otherwise.
Subclasses that do not support tiling may ignore this value.
|
tilingSet | protected boolean tilingSet(Code) | | A boolean that is true if tiling parameters
have been specified.
Subclasses that do not support reading tiles may ignore this value.
|
GeoToolsReadParams | public GeoToolsReadParams()(Code) | | Default contructor.
|
getPreferredTileSizes | public Dimension[] getPreferredTileSizes()(Code) | | Returns an array of Dimension s indicating the legal size
ranges for tiles. The returned array is a copy.
The information is returned as a set of pairs; the first element of a
pair contains an (inclusive) minimum width and height, and the second
element contains an (inclusive) maximum width and height. Together, each
pair defines a valid range of sizes. To specify a fixed size, use the
same width and height for both elements. To specify an arbitrary range, a
value of null is used in place of an actual array of
Dimension s.
If no array is specified on the constructor, but tiling is allowed, then
this method returns null .
exception: UnsupportedOperationException - if the plug-in does not support tiling. an array of Dimension s with an even length of atleast two, or null . |
|
|