Enum Class LogicalOperator

java.lang.Object
java.lang.Enum<LogicalOperator>
com.xinapse.multisliceimage.roi.LogicalOperator
All Implemented Interfaces:
Serializable, Comparable<LogicalOperator>, Constable

public enum LogicalOperator extends Enum<LogicalOperator>
An enumeration of logical operation on ROIs.
  • Enum Constant Details

    • ANDNOT_DESCENDING

      public static final LogicalOperator ANDNOT_DESCENDING
      AND NOT operation, applied to ROIs in descending size order.
    • ANDNOT_ASCENDING

      public static final LogicalOperator ANDNOT_ASCENDING
      AND NOT operation, applied to ROIs in ascending size order.
    • UNION

      public static final LogicalOperator UNION
      UNION operation.
    • INTERSECT

      public static final LogicalOperator INTERSECT
      INTERSECT operation.
    • XOR

      public static final LogicalOperator XOR
      XOR operation.
  • Method Details

    • values

      public static LogicalOperator[] 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 LogicalOperator 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 LogicalOperator.
      Overrides:
      toString in class Enum<LogicalOperator>
      Returns:
      a String representation of this LogicalOperator.
    • getPreferredOp

      public static LogicalOperator getPreferredOp(Preferences prefs)
      Returns the LogicalOperator.Op set in the given preferences.
      Parameters:
      prefs - the Preferences to search.
      Returns:
      the LogicalOperator.Op set in the given preferences.
    • savePreferredOp

      public static void savePreferredOp(LogicalOperator op, Preferences prefs)
      Saves the LogicalOperator.Op set in the given preferences.
      Parameters:
      op - the LogicalOperator.Op to set.
      prefs - the Preferences in which to set the Op.