|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
ObjectEnum<ImageTypePolicy>
ImageTypePolicy
public enum ImageTypePolicy
The policy for computing image types in a mosaic.
Those policies offer various compromise between performance and safety in presence of a mosaic
of heterogenous image format. The SUPPORTED_BY_ALL mode is the safest one, but may be
very expensive to compute. The SUPPORTED_BY_FIRST mode is faster, but assume that every
tiles in a mosaic use the same image format.
MosaicImageReadParam.getImageTypePolicy(),
MosaicImageReader.getDefaultImageTypePolicy()
| coverage/geotk-coverageio (download) | View source code for this class |
| Enum Constant Summary | |
|---|---|
ALWAYS_ARGB
Returns a single type specifier for images of TYPE_INT_ARGB. |
|
ALWAYS_RGB
Returns a single type specifier for images of TYPE_INT_RGB. |
|
SUPPORTED_BY_ALL
Returns type specifiers that are supported by every tiles. |
|
SUPPORTED_BY_FIRST
Returns type specifiers that are supported by one of the first tiles to be read. |
|
SUPPORTED_BY_ONE
Returns type specifiers that are supported by one tile, selected arbitrary. |
|
| Method Summary | |
|---|---|
static ImageTypePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ImageTypePolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ImageTypePolicy SUPPORTED_BY_ALL
public static final ImageTypePolicy SUPPORTED_BY_ONE
When Java assertions are enabled, MosaicImageReader will ensures that this
policy produces the same result than the SUPPORTED_BY_ALL policy.
public static final ImageTypePolicy SUPPORTED_BY_FIRST
SUPPORTED_BY_ONE,
except that the result is cached for all future invocation of the read method,
unless a new input is set.
public static final ImageTypePolicy ALWAYS_ARGB
TYPE_INT_ARGB. This policy should
be used only when tiles are known in advance to be compatible with the ARGB model, and
this model is wanted.
public static final ImageTypePolicy ALWAYS_RGB
TYPE_INT_RGB. This policy should
be used only when tiles are known in advance to be compatible with the RGB model, and
this model is wanted.
| Method Detail |
|---|
public static ImageTypePolicy[] values()
for (ImageTypePolicy c : ImageTypePolicy.values()) System.out.println(c);
public static ImageTypePolicy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||