Enum Class MorphologicalOperator.Op

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

public static enum MorphologicalOperator.Op extends Enum<MorphologicalOperator.Op>
An enumeration of the possible morphological operations on an image.
  • Enum Constant Details

  • Method Details

    • values

      public static MorphologicalOperator.Op[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MorphologicalOperator.Op valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Returns a String representation of this MorphologicalOperator.Op.`w
      Overrides:
      toString in class Enum<MorphologicalOperator.Op>
      Returns:
      a String representation of this MorphologicalOperator.Op.`w
    • getPreferredOp

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