adams.data.jai.transformer
Enum Crop.Anchor

java.lang.Object
  extended by java.lang.Enum<Crop.Anchor>
      extended by adams.data.jai.transformer.Crop.Anchor
All Implemented Interfaces:
Serializable, Comparable<Crop.Anchor>
Enclosing class:
Crop

public static enum Crop.Anchor
extends Enum<Crop.Anchor>

Enumeration for the crop rectangle anchor.\

Version:
$Revision: 4785 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Enum Constant Summary
BOTTOM_LEFT
          bottom left corner.
BOTTOM_RIGHT
          bottom right corner.
CENTER
          center.
TOP_LEFT
          top left corner.
TOP_RIGHT
          top right corner.
 
Method Summary
static Crop.Anchor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Crop.Anchor[] 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

TOP_LEFT

public static final Crop.Anchor TOP_LEFT
top left corner.


TOP_RIGHT

public static final Crop.Anchor TOP_RIGHT
top right corner.


CENTER

public static final Crop.Anchor CENTER
center.


BOTTOM_LEFT

public static final Crop.Anchor BOTTOM_LEFT
bottom left corner.


BOTTOM_RIGHT

public static final Crop.Anchor BOTTOM_RIGHT
bottom right corner.

Method Detail

values

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

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

valueOf

public static Crop.Anchor 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


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.