net.sourceforge.swtlayeredgraph.examples.graphsettings
Enum ColorType

java.lang.Object
  extended by java.lang.Enum<ColorType>
      extended by net.sourceforge.swtlayeredgraph.examples.graphsettings.ColorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ColorType>

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

Author:
davija

Enum Constant Summary
BLACK
           
BLUE
           
CYAN
           
DARK_BLUE
           
DARK_CYAN
           
DARK_GRAY
           
DARK_GREEN
           
DARK_MAGENTA
           
DARK_RED
           
DARK_YELLOW
           
GRAY
           
GREEN
           
MAGENTA
           
RED
           
WHITE
           
YELLOW
           
 
Method Summary
static ColorType fromDisplayName(java.lang.String displayName)
           
 int getColor()
           
static java.lang.String[] getColors()
           
 java.lang.String getDisplayName()
           
static ColorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ColorType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BLACK

public static final ColorType BLACK

BLUE

public static final ColorType BLUE

CYAN

public static final ColorType CYAN

DARK_BLUE

public static final ColorType DARK_BLUE

DARK_CYAN

public static final ColorType DARK_CYAN

DARK_GRAY

public static final ColorType DARK_GRAY

DARK_GREEN

public static final ColorType DARK_GREEN

DARK_MAGENTA

public static final ColorType DARK_MAGENTA

DARK_RED

public static final ColorType DARK_RED

DARK_YELLOW

public static final ColorType DARK_YELLOW

GRAY

public static final ColorType GRAY

GREEN

public static final ColorType GREEN

MAGENTA

public static final ColorType MAGENTA

RED

public static final ColorType RED

WHITE

public static final ColorType WHITE

YELLOW

public static final ColorType YELLOW
Method Detail

values

public static final ColorType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ColorType c : ColorType.values())
        System.out.println(c);

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

valueOf

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

fromDisplayName

public static ColorType fromDisplayName(java.lang.String displayName)

getColors

public static java.lang.String[] getColors()

getColor

public int getColor()

getDisplayName

public java.lang.String getDisplayName()


Copyright © 2009. All Rights Reserved.