net.sourceforge.swtlayeredgraph.examples.graphsettings
Enum ColorType
java.lang.Object
java.lang.Enum<ColorType>
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
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 |
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
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.