de.unihalle.informatik.MiToBo.core.datatypes.images
Enum MTBImage.FactoryMethod

java.lang.Object
  extended by java.lang.Enum<MTBImage.FactoryMethod>
      extended by de.unihalle.informatik.MiToBo.core.datatypes.images.MTBImage.FactoryMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MTBImage.FactoryMethod>
Enclosing class:
MTBImage

protected static enum MTBImage.FactoryMethod
extends java.lang.Enum<MTBImage.FactoryMethod>

methods to create new image from an existing one. used in MTBImageFactory


Enum Constant Summary
CONVERT
           
DUPLICATE
           
IMAGE_PART
           
SLICE
           
 
Method Summary
static MTBImage.FactoryMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MTBImage.FactoryMethod[] 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

CONVERT

public static final MTBImage.FactoryMethod CONVERT

DUPLICATE

public static final MTBImage.FactoryMethod DUPLICATE

IMAGE_PART

public static final MTBImage.FactoryMethod IMAGE_PART

SLICE

public static final MTBImage.FactoryMethod SLICE
Method Detail

valueOf

public static MTBImage.FactoryMethod 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

values

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

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