com.xinapse.multisliceimage.roi
Enum ROIEditAction

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

public enum ROIEditAction
extends java.lang.Enum<ROIEditAction>

An enumeration of the different types of (undoable) actions that can be performed on an ROI.


Enum Constant Summary
ADD
          Add an ROI.
CUT
          Cut an ROI to the clipboard.
DELETE
          Delete an ROI.
EDIT_OUTLINE
          Edit an ROI's outline.
ERASE
          Erase points from an ROI.
FLIP
          Flip an ROI.
JOIN
          Join ROIs.
MAKE_HOLLOW
          Join ROIs.
MORPHOLOGICAL_OP
          Do a morphological operation (erode/dilate) on an ROI.
MOVE
          Move an ROI.
PASTE
          Paste an ROI from the clipboard.
ROTATE
          Rotate an ROI.
SMOOTH
          Smooth an ROI.
 
Method Summary
 java.lang.String toString()
          Returns a String describing the edit action.
static ROIEditAction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ROIEditAction[] 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

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.


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.


MAKE_HOLLOW

public static final ROIEditAction MAKE_HOLLOW
Join ROIs.


SMOOTH

public static final ROIEditAction SMOOTH
Smooth an ROI.

Method Detail

values

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

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

valueOf

public static ROIEditAction 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 describing the edit action.

Overrides:
toString in class java.lang.Enum<ROIEditAction>
Returns:
a String describing this ROIEditAction.


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