| javax.imageio.ImageReadParam org.geotools.image.io.GeographicImageReadParam
All known Subclasses: org.geotools.image.io.netcdf.NetcdfReadParam,
GeographicImageReadParam | public class GeographicImageReadParam extends ImageReadParam (Code) | | Default parameters for
GeographicImageReader .
since: 2.4 version: $Id: GeographicImageReadParam.java 26708 2007-08-27 19:42:59Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
final public static String | DEFAULT_PALETTE_NAME The name of the default color palette to apply when none was explicitly specified. |
Method Summary | |
final String | getNonNullPaletteName() Returns a name of the color palette, or a
if none were explicitly specified. | public String | getPaletteName() Returns the name of the color palette to apply when creating an
. | public int | getVisibleBand() Returns the band to display in the target image. | public void | setPaletteName(String palette) Sets the color palette as one of the
provided by the
. | public void | setVisibleBand(int visibleBand) Sets the band to make visible in the destination image. | public String | toString() Returns a string representation of this block of parameters. |
GeographicImageReadParam | public GeographicImageReadParam(ImageReader reader)(Code) | | Creates a new, initially empty, set of parameters.
Parameters: reader - The reader for which this parameter block is created |
getNonNullPaletteName | final String getNonNullPaletteName()(Code) | | Returns a name of the color palette, or a
if none were explicitly specified.
|
getVisibleBand | public int getVisibleBand()(Code) | | Returns the band to display in the target image. In theory, images backed by
should have only
ony band. But sometime we want to load additional bands as numerical data, in
order to perform computations. In such case, we need to specify which band in
the destination image will be used as an index for displaying the colors. The
default value is 0.
|
setVisibleBand | public void setVisibleBand(int visibleBand) throws IllegalArgumentException(Code) | | Sets the band to make visible in the destination image.
Parameters: visibleBand - The band to make visible. throws: IllegalArgumentException - if the specified band index is invalid. |
toString | public String toString()(Code) | | Returns a string representation of this block of parameters.
|
|
|