Enum Class ROIEditAction

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

public enum ROIEditAction extends Enum<ROIEditAction>
An enumeration of the different types of (undoable) actions that can be performed on an ROI.
  • Enum Constant Details

    • ADD

      public static final ROIEditAction ADD
      Add an ROI.
    • DELETE

      public static final ROIEditAction DELETE
      Delete an ROI.
    • CUT

      public static final ROIEditAction CUT
      Cut an ROI to the clipboard.
    • PASTE

      public static final ROIEditAction PASTE
      Paste an ROI from the clipboard.
    • MOVE

      public static final ROIEditAction MOVE
      Move an ROI.
    • ROTATE

      public static final ROIEditAction ROTATE
      Rotate an ROI.
    • FLIP

      public static final ROIEditAction FLIP
      Flip an ROI.
    • MORPHOLOGICAL_OP

      public static final ROIEditAction MORPHOLOGICAL_OP
      Do a morphological operation (erode/dilate) on an ROI.
    • LOGICAL_OP

      public static final ROIEditAction LOGICAL_OP
      Do a logical operation (union, andNot, union, intersect, XOR) on a set of ROIs.
    • EDIT_OUTLINE

      public static final ROIEditAction EDIT_OUTLINE
      Edit an ROI's outline.
    • ERASE

      public static final ROIEditAction ERASE
      Erase points from an ROI.
    • JOIN

      public static final ROIEditAction JOIN
      Join ROIs.
    • GROUP

      public static final ROIEditAction GROUP
      Group ROIs.
    • MAKE_HOLLOW

      public static final ROIEditAction MAKE_HOLLOW
      Make a hollow ROI.
    • SMOOTH

      public static final ROIEditAction SMOOTH
      Smooth an ROI.
    • PAINT

      public static final ROIEditAction PAINT
      Paint pixels in a region.
  • Method Details

    • values

      public static ROIEditAction[] 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 ROIEditAction 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 describing the edit action.
      Overrides:
      toString in class Enum<ROIEditAction>
      Returns:
      a String describing this ROIEditAction.