com.xinapse.filter
Enum MorphologicalOperator.Op

java.lang.Object
  extended by java.lang.Enum<MorphologicalOperator.Op>
      extended by com.xinapse.filter.MorphologicalOperator.Op
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MorphologicalOperator.Op>
Enclosing class:
MorphologicalOperator

public static enum MorphologicalOperator.Op
extends java.lang.Enum<MorphologicalOperator.Op>

An enumeration of the possible morphological operations on an image.


Enum Constant Summary
CLOSE
          Closing operation.
DILATE
          Dilate operation.
ERODE
          Erode operation.
OPEN
          Opening operation.
 
Method Summary
static MorphologicalOperator.Op getPreferredOp(java.util.prefs.Preferences prefs)
          Returns the MorphologicalOperator.Op set in the given preferences.
static void savePreferredOp(MorphologicalOperator.Op op, java.util.prefs.Preferences prefs)
          Saves the MorphologicalOperator.Op set in the given preferences.
 java.lang.String toString()
          Returns a String representation of this MorphologicalOperator.Op.`w
static MorphologicalOperator.Op valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MorphologicalOperator.Op[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DILATE

public static final MorphologicalOperator.Op DILATE
Dilate operation.


ERODE

public static final MorphologicalOperator.Op ERODE
Erode operation.


OPEN

public static final MorphologicalOperator.Op OPEN
Opening operation.


CLOSE

public static final MorphologicalOperator.Op CLOSE
Closing operation.

Method Detail

values

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

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

valueOf

public static MorphologicalOperator.Op 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

toString

public java.lang.String toString()
Returns a String representation of this MorphologicalOperator.Op.`w

Overrides:
toString in class java.lang.Enum<MorphologicalOperator.Op>
Returns:
a String representation of this MorphologicalOperator.Op.`w

getPreferredOp

public static MorphologicalOperator.Op getPreferredOp(java.util.prefs.Preferences prefs)
Returns the MorphologicalOperator.Op set in the given preferences.

Parameters:
prefs - the Preferences to search.
Returns:
the MorphologicalOperator.Op set in the given preferences.

savePreferredOp

public static void savePreferredOp(MorphologicalOperator.Op op,
                                   java.util.prefs.Preferences prefs)
Saves the MorphologicalOperator.Op set in the given preferences.

Parameters:
op - the MorphologicalOperator.Op to set.
prefs - the Preferences in which to set the Op.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.