|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DColor> scale.common.DColor
public enum DColor
This enum specifies graphical display colors - red, blue, etc.
$Id$
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Method Summary | |
---|---|
int |
blue()
|
java.awt.Color |
color()
|
int |
green()
|
int |
red()
|
java.lang.String |
sName()
|
int |
value()
|
static DColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DColor[] |
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, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DColor WHITE
public static final DColor BLUE
public static final DColor RED
public static final DColor GREEN
public static final DColor YELLOW
public static final DColor MAGENTA
public static final DColor CYAN
public static final DColor DARKGREY
public static final DColor DARKBLUE
public static final DColor DARKRED
public static final DColor DARKGREEN
public static final DColor DARKYELLOW
public static final DColor DARKMAGENTA
public static final DColor DARKCYAN
public static final DColor GOLD
public static final DColor LIGHTGREY
public static final DColor LIGHTBLUE
public static final DColor LIGHTRED
public static final DColor LIGHTGREEN
public static final DColor LIGHTYELLOW
public static final DColor LIGHTMAGENTA
public static final DColor LIGHTCYAN
public static final DColor LILAC
public static final DColor TURQUOISE
public static final DColor AQUAMARINE
public static final DColor KHAKI
public static final DColor PURPLE
public static final DColor YELLOWGREEN
public static final DColor PINK
public static final DColor ORANGE
public static final DColor ORCHID
public static final DColor BLACK
public static final DColor BROWN
Method Detail |
---|
public static DColor[] values()
for (DColor c : DColor.values()) System.out.println(c);
public static DColor 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 int value()
public int red()
public int green()
public int blue()
public java.lang.String sName()
public java.awt.Color color()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |