| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ColorSpace>
br.usp.ime.klava.segmentit.util.ColorSpace
public enum ColorSpace
Represents an interval of colors from which is possible to select an unique color for each catchment basin (region of interest).
| Enum Constant Summary | |
|---|---|
DEFAULT
The default color space from the Color class. | 
|
HUES
A color space that spans the hues interval.  | 
|
| Method Summary | |
|---|---|
 java.awt.Color | 
getColor(int index,
         int max)
Return a unique Color for each index in the
 interval [1, max]. | 
static void | 
selectColorSpace(ColorSpace initial)
Displays a JDialog in which the user can select a
 ColorSpace. | 
static ColorSpace | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.  | 
static ColorSpace[] | 
values()
Returns an array containing the constants of this enum type, in the order they are declared.  | 
| Methods inherited from class java.lang.Enum | 
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final ColorSpace DEFAULT
Color class.
public static final ColorSpace HUES
| Method Detail | 
|---|
public static ColorSpace[] values()
for (ColorSpace c : ColorSpace.values()) System.out.println(c);
public static ColorSpace 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 null
public java.awt.Color getColor(int index,
                               int max)
Color for each index in the
 interval [1, max].
index - the index for which a Color is neededmax - the upper bound of the interval of indexes
Color for the given indexpublic static void selectColorSpace(ColorSpace initial)
JDialog in which the user can select a
 ColorSpace.
initial - the ColorSpace initially selected
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||