scale.common
Enum DColor

java.lang.Object
  extended by java.lang.Enum<DColor>
      extended by scale.common.DColor
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DColor>

public enum DColor
extends java.lang.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.


Enum Constant Summary
AQUAMARINE
           
BLACK
           
BLUE
           
BROWN
           
CYAN
           
DARKBLUE
           
DARKCYAN
           
DARKGREEN
           
DARKGREY
           
DARKMAGENTA
           
DARKRED
           
DARKYELLOW
           
GOLD
           
GREEN
           
KHAKI
           
LIGHTBLUE
           
LIGHTCYAN
           
LIGHTGREEN
           
LIGHTGREY
           
LIGHTMAGENTA
           
LIGHTRED
           
LIGHTYELLOW
           
LILAC
           
MAGENTA
           
ORANGE
           
ORCHID
           
PINK
           
PURPLE
           
RED
           
TURQUOISE
           
WHITE
           
YELLOW
           
YELLOWGREEN
           
 
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

WHITE

public static final DColor WHITE

BLUE

public static final DColor BLUE

RED

public static final DColor RED

GREEN

public static final DColor GREEN

YELLOW

public static final DColor YELLOW

MAGENTA

public static final DColor MAGENTA

CYAN

public static final DColor CYAN

DARKGREY

public static final DColor DARKGREY

DARKBLUE

public static final DColor DARKBLUE

DARKRED

public static final DColor DARKRED

DARKGREEN

public static final DColor DARKGREEN

DARKYELLOW

public static final DColor DARKYELLOW

DARKMAGENTA

public static final DColor DARKMAGENTA

DARKCYAN

public static final DColor DARKCYAN

GOLD

public static final DColor GOLD

LIGHTGREY

public static final DColor LIGHTGREY

LIGHTBLUE

public static final DColor LIGHTBLUE

LIGHTRED

public static final DColor LIGHTRED

LIGHTGREEN

public static final DColor LIGHTGREEN

LIGHTYELLOW

public static final DColor LIGHTYELLOW

LIGHTMAGENTA

public static final DColor LIGHTMAGENTA

LIGHTCYAN

public static final DColor LIGHTCYAN

LILAC

public static final DColor LILAC

TURQUOISE

public static final DColor TURQUOISE

AQUAMARINE

public static final DColor AQUAMARINE

KHAKI

public static final DColor KHAKI

PURPLE

public static final DColor PURPLE

YELLOWGREEN

public static final DColor YELLOWGREEN

PINK

public static final DColor PINK

ORANGE

public static final DColor ORANGE

ORCHID

public static final DColor ORCHID

BLACK

public static final DColor BLACK

BROWN

public static final DColor BROWN
Method Detail

values

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

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

valueOf

public static DColor 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

value

public int value()

red

public int red()

green

public int green()

blue

public int blue()

sName

public java.lang.String sName()

color

public java.awt.Color color()