org.geotools.image.io.mosaic
Enum ImageTypePolicy

java.lang.Object
  extended by java.lang.Enum<ImageTypePolicy>
      extended by org.geotools.image.io.mosaic.ImageTypePolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ImageTypePolicy>

public enum ImageTypePolicy
extends java.lang.Enum<ImageTypePolicy>

The policy for computing image types in a mosaic.

Since:
2.5
Version:
$Id: ImageTypePolicy.java 30729 2008-06-16 09:26:48Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
MosaicImageReadParam.getImageTypePolicy(), MosaicImageReader.getDefaultImageTypePolicy()

Enum Constant Summary
ALWAYS_ARGB
          Returns a single type specifier for images of TYPE_INT_ARGB.
SUPPORTED_BY_ALL
          Returns type specifiers that are supported by every tiles.
SUPPORTED_BY_ONE
          Returns type specifiers that are supported by one tile, selected arbitrary.
 
Method Summary
static ImageTypePolicy valueOf(java.lang.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 java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUPPORTED_BY_ALL

public static final ImageTypePolicy SUPPORTED_BY_ALL
Returns type specifiers that are supported by every tiles. This is the most robust policy, but also the most expensive. This policy should be selected when the tiles may be stored in heterogeneous formats.


SUPPORTED_BY_ONE

public static final ImageTypePolicy SUPPORTED_BY_ONE
Returns type specifiers that are supported by one tile, selected arbitrary. This policy is appropriate when the tiles are stored in a homogeneous format.

When Java assertions are enabled, MosaicImageReader will ensures that this policy produces the same result than the SUPPORTED_BY_ALL policy.


ALWAYS_ARGB

public static final ImageTypePolicy ALWAYS_ARGB
Returns a single type specifier for images of 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.

Method Detail

values

public static ImageTypePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ImageTypePolicy c : ImageTypePolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ImageTypePolicy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 1996-2010 Geotools. All Rights Reserved.