org.deegree.coverage.raster.interpolation
Enum InterpolationType

java.lang.Object
  extended by java.lang.Enum<InterpolationType>
      extended by org.deegree.coverage.raster.interpolation.InterpolationType
All Implemented Interfaces:
Serializable, Comparable<InterpolationType>

public enum InterpolationType
extends Enum<InterpolationType>

Enum for all implemented interpolation types.

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Oliver Tonnhofer, last edited by: $Author: mschneider $

Enum Constant Summary
BILINEAR
          bilinear interpolation
NEAREST_NEIGHBOR
          nearest neighbor interpolation
NONE
          No interpolation
 
Method Summary
static InterpolationType fromString(String interpolation)
          Get interpolation for the given string.
static InterpolationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InterpolationType[] 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

BILINEAR

public static final InterpolationType BILINEAR
bilinear interpolation


NEAREST_NEIGHBOR

public static final InterpolationType NEAREST_NEIGHBOR
nearest neighbor interpolation


NONE

public static final InterpolationType NONE
No interpolation

Method Detail

values

public static InterpolationType[] 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 (InterpolationType c : InterpolationType.values())
    System.out.println(c);

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

valueOf

public static InterpolationType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromString

public static InterpolationType fromString(String interpolation)
Get interpolation for the given string. This method is case insensitive, words can be separated with a whitespace, minus or underscore.

Parameters:
interpolation -
Returns:
the interpolation


Copyright © 2011. All Rights Reserved.