Package com.xinapse.multisliceimage.roi
Enum Class LogicalOperator
- All Implemented Interfaces:
Serializable
,Comparable<LogicalOperator>
,Constable
An enumeration of logical operation on ROIs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAND NOT operation, applied to ROIs in ascending size order.AND NOT operation, applied to ROIs in descending size order.INTERSECT operation.UNION operation.XOR operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic LogicalOperator
getPreferredOp
(Preferences prefs) Returns the LogicalOperator.Op set in the given preferences.static void
savePreferredOp
(LogicalOperator op, Preferences prefs) Saves the LogicalOperator.Op set in the given preferences.toString()
Returns a String representation of this LogicalOperator.static LogicalOperator
Returns the enum constant of this class with the specified name.static LogicalOperator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANDNOT_DESCENDING
AND NOT operation, applied to ROIs in descending size order. -
ANDNOT_ASCENDING
AND NOT operation, applied to ROIs in ascending size order. -
UNION
UNION operation. -
INTERSECT
INTERSECT operation. -
XOR
XOR operation.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
toString
Returns a String representation of this LogicalOperator.- Overrides:
toString
in classEnum<LogicalOperator>
- Returns:
- a String representation of this LogicalOperator.
-
getPreferredOp
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
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.
-