|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ROIState>
com.xinapse.multisliceimage.roi.ROIState
public enum ROIState
An enumeration of the different states in which an ROI can be. The state of an ROI affects its on-screen appearance and manipulability.
| Enum Constant Summary | |
|---|---|
DELETED
ROIState for a deleted ROI. |
|
DELETED_SELECTED
ROIState for a deleted ROI that is selected by the user. |
|
EDIT_OUTLINE
ROIState for a normal selected irregular ROI when its outline is editable. |
|
EDITABLE
ROIState for a normal, selected and editable ROI. |
|
NORMAL
ROIState for a normal, unselected ROI. |
|
SELECTED
ROIState for a normal, selected ROI. |
|
| Method Summary | |
|---|---|
static java.awt.Color |
getChoosableColor(int index)
Returns one of the user-choosable ROI colours. |
java.awt.Color |
getDrawColor(byte userColour)
Returns the colour with which an ROI in this state should be drawn. |
static int |
getNChoosableColors()
Returns the number of user-choosable ROI colours that may be set. |
static void |
setChoosableColor(int index,
java.awt.Color c)
Sets one of the user-choosable ROI colours. |
static void |
setColor(java.awt.Color c)
Sets the colour with which ROIs in their normal, unselected state should be drawn. |
static void |
setDeletedColor(java.awt.Color c)
Sets the colour with which deleted ROIs should be drawn. |
static void |
setSelectedColor(java.awt.Color c)
Sets the colour with which ROIs in their selected state should be drawn. |
java.lang.String |
toString()
Returns a string describing this ROI state. |
static ROIState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ROIState[] |
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 |
|---|
public static final ROIState DELETED
public static final ROIState DELETED_SELECTED
public static final ROIState NORMAL
public static final ROIState SELECTED
public static final ROIState EDITABLE
public static final ROIState EDIT_OUTLINE
| Method Detail |
|---|
public static ROIState[] values()
for (ROIState c : ROIState.values()) System.out.println(c);
public static ROIState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.awt.Color getDrawColor(byte userColour)
public static int getNChoosableColors()
public static java.awt.Color getChoosableColor(int index)
index - the index to the user-choosable colour.
java.lang.ArrayIndexOutOfBoundsException - if the supplied index is outside the range
for the number of user-choosable colours.
public static void setChoosableColor(int index,
java.awt.Color c)
c - the user-choosable colour.index - the index to the user-choosable colour.
java.lang.ArrayIndexOutOfBoundsException - if the supplied index is outside the range
for the number of user-choosable colours that may be set.public static void setColor(java.awt.Color c)
c - the colour with which normal, unselected ROIs are to be drawn.public static void setSelectedColor(java.awt.Color c)
c - the colour with which selected ROIs are to be drawn.public static void setDeletedColor(java.awt.Color c)
c - the colour with which deleted ROIs are to be drawn.public java.lang.String toString()
toString in class java.lang.Enum<ROIState>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||